Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
OpenFlipper-Free
OpenFlipper
Commits
49679119
Commit
49679119
authored
May 07, 2019
by
Max Lyon
Browse files
update CGAL finder
parent
055f2322
Changes
1
Hide whitespace changes
Inline
Side-by-side
cmake/FindCGAL.cmake
View file @
49679119
...
...
@@ -26,26 +26,19 @@ endif()
FIND_PACKAGE
(
CGAL REQUIRED CONFIG
HINTS $ENV{CGAL_DIR}
PATHS
"
${
VS_SEARCH_PATH
}
/CGAL-4.13"
"
${
VS_SEARCH_PATH
}
/CGAL-4.13"
"
${
VS_SEARCH_PATH
}
/CGAL-4.12"
"
${
VS_SEARCH_PATH
}
/CGAL-4.7"
/usr/
../../External
"C:/libs/CGAL-3.6"
"C:/Program Files/CGAL-3.5"
"C:/Programme/CGAL-3.5"
"C:/libs/CGAL-3.5"
"C:/Program Files/CGAL-3.4"
"C:/Programme/CGAL-3.4"
"C:/libs/CGAL-3.4"
"C:/Programme/CGAL-3.9"
"C:/Program Files/CGAL-3.9"
"C:/Program Files (x86)/CGAL-3.9"
${
module_file_path
}
/../../../External
PATH_SUFFIXES lib lib/cmake
NO_CMAKE_PATH
# if CMAKE_PREFIX_PATH is set we find CGAL 4.12 instead of 4.13. I dont know why that is.
NO_CMAKE_ENVIRONMENT_PATH
)
# Set NO_CMAKE_PATH and NO_CMAKE_ENVIRONMENT_PATH to ignore CMAKE_PREFIX_PATH
if
(
CGAL_FOUND
)
set
(
CGAL_BIN_DIRS
${
CGAL_BIN_DIR
}
${
CGAL_BIN_DIR
}
\..\auxiliary\gmp\lib
)
set
(
CGAL_BIN_DIRS
${
CGAL_BIN_DIR
}
${
CGAL_BIN_DIR
}
/../auxiliary/gmp/lib
)
endif
()
if
(
NOT TARGET CGAL::CGAL
)
message
(
FATAL_ERROR
"Your CGAL version does not define the CGAL::CGAL target which probably means it is too old"
)
endif
()
\ No newline at end of file
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment