We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ea8658b commit ad08795Copy full SHA for ad08795
common/CMakeLists.txt
@@ -33,11 +33,11 @@ else()
33
endif()
34
35
set(TEMPLATE_FILE "${CMAKE_CURRENT_SOURCE_DIR}/build-info.cpp.in")
36
-set(OUTPUT_FILE "${CMAKE_CURRENT_SOURCE_DIR}/build-info.cpp")
+set(OUTPUT_FILE "${CMAKE_CURRENT_BINARY_DIR}/build-info.cpp")
37
configure_file(${TEMPLATE_FILE} ${OUTPUT_FILE})
38
39
set(TARGET build_info)
40
-add_library(${TARGET} OBJECT build-info.cpp)
+add_library(${TARGET} OBJECT ${OUTPUT_FILE})
41
if (BUILD_SHARED_LIBS)
42
set_target_properties(${TARGET} PROPERTIES POSITION_INDEPENDENT_CODE ON)
43
0 commit comments