File tree Expand file tree Collapse file tree 2 files changed +9
-9
lines changed Expand file tree Collapse file tree 2 files changed +9
-9
lines changed Original file line number Diff line number Diff line change 11cmake_minimum_required (VERSION 3.0)
22
3- project (wsjcpp-validators)
3+ project (wsjcpp-validators C CXX)
4+
5+ find_package (Threads REQUIRED)
46
57include (${CMAKE_CURRENT_SOURCE_DIR} /src.wsjcpp/CMakeLists.txt)
68
@@ -20,11 +22,11 @@ include_directories(${WSJCPP_INCLUDE_DIRS})
2022
2123add_executable ("wsjcpp-validators" ${WSJCPP_SOURCES} )
2224
23- target_link_libraries ("wsjcpp-validators" -lpthread ${WSJCPP_LIBRARIES } )
25+ target_link_libraries ("wsjcpp-validators" ${CMAKE_THREAD_LIBS_INIT } )
2426
2527install (
2628 TARGETS
2729 "wsjcpp-validators"
2830 RUNTIME DESTINATION
2931 /usr/bin
30- )
32+ )
Original file line number Diff line number Diff line change 11# Automaticly generated by wsjcpp@v0.0.1
22cmake_minimum_required (VERSION 3.0)
33
4- project (unit-tests)
4+ project (unit-tests C CXX)
5+
6+ find_package (Threads REQUIRED)
57
68if (${CMAKE_SYSTEM_NAME} MATCHES "Darwin" )
79 set (MACOSX TRUE )
@@ -58,15 +60,11 @@ list (APPEND WSJCPP_SOURCES "../unit-tests.wsjcpp/src/unit_test_is_valid_ip_v4.c
5860list (APPEND WSJCPP_SOURCES "../unit-tests.wsjcpp/src/unit_test_is_valid_ip_v6.h" )
5961list (APPEND WSJCPP_SOURCES "../unit-tests.wsjcpp/src/unit_test_is_valid_ip_v6.cpp" )
6062
61- # required-libraries
62- list (APPEND WSJCPP_LIBRARIES "-lpthread" )
63-
64-
6563include_directories (${WSJCPP_INCLUDE_DIRS} )
6664
6765add_executable ("unit-tests" ${WSJCPP_SOURCES} )
6866
69- target_link_libraries ("unit-tests" -lpthread ${WSJCPP_LIBRARIES } )
67+ target_link_libraries ("unit-tests" ${CMAKE_THREAD_LIBS_INIT } )
7068
7169install (
7270 TARGETS
You can’t perform that action at this time.
0 commit comments