File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -7,6 +7,6 @@ Name: @PROJECT_NAME@
77Description: Google microbenchmark framework
88Version: @VERSION@
99
10- Libs: -L${libdir} -l@BENCHMARK_LIB_NAME@
10+ Libs: -L${libdir} -l@BENCHMARK_LIB_NAME@ -l@BENCHMARK_MAIN_LIB_NAME@
1111Libs.private: -lpthread
1212Cflags: -I${includedir}
Original file line number Diff line number Diff line change @@ -76,6 +76,11 @@ if(CMAKE_BUILD_TYPE STREQUAL "Debug")
7676 set (BENCHMARK_LIB_NAME ${BENCHMARK_LIB_NAME}${BENCHMARK_DEBUG_POSTFIX} )
7777endif ()
7878
79+ get_target_property (BENCHMARK_MAIN_LIB_NAME benchmark_main OUTPUT_NAME )
80+ if (CMAKE_BUILD_TYPE STREQUAL "Debug" )
81+ set (BENCHMARK_MAIN_LIB_NAME ${BENCHMARK_MAIN_LIB_NAME}${BENCHMARK_DEBUG_POSTFIX} )
82+ endif ()
83+
7984set (generated_dir "${CMAKE_CURRENT_BINARY_DIR} /generated" )
8085
8186set (version_config "${generated_dir} /${PROJECT_NAME} ConfigVersion.cmake" )
You can’t perform that action at this time.
0 commit comments