Use CMAKE_BINARY_DIR for examples output

This commit is contained in:
sha512sum 2024-09-26 15:59:54 +00:00
parent a5a0d5a031
commit 0a38c55c19

View file

@ -197,7 +197,7 @@ if(ENABLE_EXAMPLES)
target_link_libraries(${EXAMPLE_NAME} larra_xmpp) target_link_libraries(${EXAMPLE_NAME} larra_xmpp)
set_property(TARGET ${EXAMPLE_NAME} PROPERTY CXX_STANDARD 23) set_property(TARGET ${EXAMPLE_NAME} PROPERTY CXX_STANDARD 23)
set_target_properties(${EXAMPLE_NAME} PROPERTIES set_target_properties(${EXAMPLE_NAME} PROPERTIES
RUNTIME_OUTPUT_DIRECTORY "${CMAKE_SOURCE_DIR}/examples/output") RUNTIME_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/examples/output")
endforeach() endforeach()
endif() endif()