Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cmake: fix build failure in epel7 buildroot #221

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/workflows/differential-shellcheck.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
name: Differential ShellCheck
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]

Expand Down
9 changes: 7 additions & 2 deletions src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,14 @@ if(SANITIZERS)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fno-sanitize-recover=all")
endif()

# Disable deprecated internal FindBoost module if possible.
if(POLICY CMP0167)
cmake_policy(SET CMP0167 NEW)
endif()

# find Boost
set(Boost_VERBOSE TRUE)
find_package(Boost CONFIG REQUIRED
find_package(Boost REQUIRED
COMPONENTS filesystem
program_options
regex
Expand Down Expand Up @@ -127,7 +132,7 @@ macro(build_pycsdiff version)

# find boost_python${version}
set(PYTHON_VERSION_SUFFIX "${version}${Python${version}_VERSION_MINOR}")
find_package(Boost CONFIG REQUIRED COMPONENTS python${PYTHON_VERSION_SUFFIX})
find_package(Boost REQUIRED COMPONENTS python${PYTHON_VERSION_SUFFIX})
message(STATUS "Python ${version} binding enabled. "
"The pycsdiff module will be built!")

Expand Down
Loading