File tree Expand file tree Collapse file tree 3 files changed +5
-4
lines changed
Expand file tree Collapse file tree 3 files changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -29,7 +29,7 @@ if (WIN32)
2929 option (Boost_USE_STATIC_RUNTIME "Link Boost against static C++ runtime libraries" ON )
3030endif ()
3131
32- set (BOOST_COMPONENTS "filesystem;unit_test_framework;program_options;system " )
32+ set (BOOST_COMPONENTS "filesystem;unit_test_framework;program_options" )
3333
3434# CMake >= 3.30 should not use the vendored boost
3535if (POLICY CMP0167)
5050 if (POLICY CMP0167)
5151 cmake_policy (SET CMP0167 OLD)
5252 endif ()
53+ list (APPEND BOOST_COMPONENTS system )
5354 find_package (Boost 1.67.0 QUIET REQUIRED COMPONENTS ${BOOST_COMPONENTS} )
5455 endif ()
5556endif ()
Original file line number Diff line number Diff line change @@ -47,7 +47,7 @@ set(sources
4747)
4848
4949add_library (solutil ${sources} )
50- target_link_libraries (solutil PUBLIC Boost::boost Boost::filesystem Boost:: system range-v3 fmt::fmt-header-only nlohmann_json::nlohmann_json)
50+ target_link_libraries (solutil PUBLIC Boost::boost Boost::filesystem ${Boost_SYSTEM_LIBRARY} range-v3 fmt::fmt-header-only nlohmann_json::nlohmann_json)
5151target_include_directories (solutil PUBLIC "${PROJECT_SOURCE_DIR} " )
5252add_dependencies (solutil solidity_BuildInfo.h)
5353
Original file line number Diff line number Diff line change @@ -5,10 +5,10 @@ add_executable(yulrun yulrun.cpp)
55target_link_libraries (yulrun PRIVATE yulInterpreter libsolc evmasm Boost::boost Boost::program_options)
66
77add_executable (solfuzzer afl_fuzzer.cpp fuzzer_common.cpp)
8- target_link_libraries (solfuzzer PRIVATE libsolc evmasm Boost::boost Boost::program_options Boost:: system )
8+ target_link_libraries (solfuzzer PRIVATE libsolc evmasm Boost::boost Boost::program_options ${Boost_SYSTEM_LIBRARY} )
99
1010add_executable (yulopti yulopti.cpp)
11- target_link_libraries (yulopti PRIVATE solidity Boost::boost Boost::program_options Boost:: system )
11+ target_link_libraries (yulopti PRIVATE solidity Boost::boost Boost::program_options ${Boost_SYSTEM_LIBRARY} )
1212
1313add_executable (isoltest
1414 isoltest.cpp
You can’t perform that action at this time.
0 commit comments