File tree Expand file tree Collapse file tree 3 files changed +5
-2
lines changed Expand file tree Collapse file tree 3 files changed +5
-2
lines changed Original file line number Diff line number Diff line change 11cmake_minimum_required (VERSION 3.0)
22
3- project (wsjcpp-print-tree )
3+ project (wsjcpp-print-tree C CXX )
44
55include (${CMAKE_CURRENT_SOURCE_DIR} /src.wsjcpp/CMakeLists.txt)
66
Original file line number Diff line number Diff line change @@ -14,6 +14,9 @@ set (WSJCPP_LIBRARIES "")
1414set (WSJCPP_INCLUDE_DIRS "" )
1515set (WSJCPP_SOURCES "" )
1616
17+ find_package (Threads REQUIRED)
18+ list (APPEND WSJCPP_LIBRARIES ${CMAKE_THREAD_LIBS_INIT} )
19+
1720# wsjcpp-core:v0.0.5
1821list (APPEND WSJCPP_INCLUDE_DIRS "./src.wsjcpp/wsjcpp_core/" )
1922list (APPEND WSJCPP_SOURCES "./src.wsjcpp/wsjcpp_core/wsjcpp_core.cpp" )
Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ set (WSJCPP_INCLUDE_DIRS "")
1717set (WSJCPP_SOURCES "" )
1818
1919find_package (Threads REQUIRED)
20- list (APPEND WSJCPP_SOURCES ${CMAKE_THREAD_LIBS_INIT} )
20+ list (APPEND WSJCPP_LIBRARIES ${CMAKE_THREAD_LIBS_INIT} )
2121
2222# wsjcpp-core:v0.0.5
2323list (APPEND WSJCPP_INCLUDE_DIRS "../src.wsjcpp/wsjcpp_core/" )
You can’t perform that action at this time.
0 commit comments