Skip to content

Commit

Permalink
Fix building with CMake < 3.15
Browse files Browse the repository at this point in the history
"headers" is only a component in later versions.
  • Loading branch information
Vogtinator authored and milianw committed Jul 8, 2024
1 parent 46994b7 commit db9f129
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/analyze/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ if (ECM_FOUND)
include(ECMEnableSanitizers)
endif()

find_package(Boost 1.41.0 REQUIRED COMPONENTS headers iostreams program_options system filesystem)
find_package(Boost 1.41.0 REQUIRED COMPONENTS iostreams program_options system filesystem)

configure_file(analyze_config.h.cmake ${CMAKE_CURRENT_BINARY_DIR}/analyze_config.h)

Expand Down
3 changes: 1 addition & 2 deletions src/interpret/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@ if (ECM_FOUND)
endif()

find_package(Elfutils 0.158 REQUIRED)
find_package(Boost 1.41.0 REQUIRED COMPONENTS headers program_options)

find_package(Boost 1.41.0 REQUIRED COMPONENTS program_options)

include_directories(
${PROJECT_SOURCE_DIR}/3rdparty/
Expand Down

0 comments on commit db9f129

Please sign in to comment.