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

Fix cmake for cmake 3.22 #1304

Merged
merged 1 commit into from
Jan 2, 2024
Merged
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
7 changes: 3 additions & 4 deletions third-party/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,12 @@ find_package(Boost 1.82
NO_DEFAULT_PATH
PATHS
${CMAKE_CURRENT_SOURCE_DIR}/boost-1.82.0
GLOBAL
)
set_target_properties(Boost::boost PROPERTIES IMPORTED_GLOBAL TRUE)
################################################################################
# threading
################################################################################
find_package(Threads REQUIRED GLOBAL)
find_package(Threads REQUIRED)

################################################################################
# CGAL
Expand All @@ -38,7 +38,6 @@ find_package(CGAL 5.5
NO_DEFAULT_PATH
PATHS
${CMAKE_CURRENT_SOURCE_DIR}/cgal-5.6.0
GLOBAL
)

################################################################################
Expand All @@ -50,7 +49,7 @@ add_subdirectory(poly2tri)
# Python Interpreter / CPython
################################################################################
set(Python_FIND_VIRTUALENV "FIRST")
find_package(Python COMPONENTS Interpreter Development.Module REQUIRED GLOBAL)
find_package(Python COMPONENTS Interpreter Development.Module REQUIRED)
add_subdirectory(pybind11-2.11.1)
set(Python_EXECUTABLE ${Python_EXECUTABLE} PARENT_SCOPE)

Expand Down