mirror of
https://github.com/fw876/helloworld.git
synced 2026-12-06 00:01:06 +00:00
Update 002-Fix-boost1.89-build.patch
This commit is contained in:
1 parent
334f00f149
commit
c341a4f4e1
1 file changed
+1
-2
@@ -1,6 +1,6 @@
|
||||
--- a/CMakeLists.txt
|
||||
+++ b/CMakeLists.txt
|
||||
@@ -21,7 +21,13 @@ set(THREADS_PREFER_PTHREAD_FLAG ON)
|
||||
@@ -21,7 +21,12 @@ set(THREADS_PREFER_PTHREAD_FLAG ON)
|
||||
find_package(Threads REQUIRED)
|
||||
target_link_libraries(trojan ${CMAKE_THREAD_LIBS_INIT})
|
||||
|
||||
@@ -11,7 +11,6 @@
|
||||
+else()
|
||||
+ find_package(Boost 1.66.0 REQUIRED COMPONENTS program_options)
|
||||
+endif()
|
||||
+
|
||||
target_include_directories(trojan PRIVATE ${Boost_INCLUDE_DIR})
|
||||
target_link_libraries(trojan ${Boost_LIBRARIES})
|
||||
if(MSVC)
|
||||
Reference in new issue
Block a user