trojan: Fix boost 1.89 patch.

This commit is contained in:
zxl hhyccc authored and GitHub committed 2025-09-01 12:55:29 +08:00
1 parent c341a4f4e1
commit bd2ef707f8
1 file changed
+2 -2
+2 -2
View File
@@ -1,6 +1,6 @@
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -21,7 +21,12 @@ set(THREADS_PREFER_PTHREAD_FLAG ON)
@@ -36,7 +36,12 @@ set(THREADS_PREFER_PTHREAD_FLAG ON)
find_package(Threads REQUIRED)
target_link_libraries(trojan ${CMAKE_THREAD_LIBS_INIT})
@@ -11,6 +11,6 @@
+else()
+ find_package(Boost 1.66.0 REQUIRED COMPONENTS program_options)
+endif()
target_include_directories(trojan PRIVATE ${Boost_INCLUDE_DIR})
include_directories(${Boost_INCLUDE_DIR})
target_link_libraries(trojan ${Boost_LIBRARIES})
if(MSVC)