Update 002-Fix-boost1.89-build.patch

This commit is contained in:
zxl hhyccc authored and GitHub committed 2025-08-30 23:21:24 +08:00
1 parent 334f00f149
commit c341a4f4e1
1 file changed
+1 -2
+1 -2
View File
@@ -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)