ports/devel/cpp-hocon/files/patch-lib_tests_CMakeLists.txt

31 lines
1.1 KiB
Text

--- lib/tests/CMakeLists.txt.orig 2016-09-23 20:45:10 UTC
+++ lib/tests/CMakeLists.txt
@@ -18,23 +18,23 @@ set(TEST_CASES
program_options.cc
)
-add_executable(lib${PROJECT_NAME}_test $<TARGET_OBJECTS:libprojectsrc> ${TEST_CASES} main.cc)
+add_executable(${PROJECT_NAME}_test $<TARGET_OBJECTS:libprojectsrc> ${TEST_CASES} main.cc)
if (${CMAKE_SYSTEM_NAME} MATCHES "Linux" OR ${CMAKE_SYSTEM_NAME} MATCHES "SunOS")
- target_link_libraries(lib${PROJECT_NAME}_test rt)
+ target_link_libraries(${PROJECT_NAME}_test rt)
endif()
-target_link_libraries(lib${PROJECT_NAME}_test
+target_link_libraries(${PROJECT_NAME}_test
${Boost_LIBRARIES}
${LEATHERMAN_LIBRARIES}
${CMAKE_THREAD_LIBS_INIT}
)
if (${CMAKE_SYSTEM_NAME} MATCHES "Darwin" AND BOOST_STATIC AND LEATHERMAN_USE_LOCALES)
- target_link_libraries(lib${PROJECT_NAME}_test iconv)
+ target_link_libraries(${PROJECT_NAME}_test iconv)
endif()
-add_test(NAME "unit_tests" COMMAND lib${PROJECT_NAME}_test)
+add_test(NAME "unit_tests" COMMAND ${PROJECT_NAME}_test)
configure_file (
"${CMAKE_CURRENT_LIST_DIR}/fixtures.hpp.in"