Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Guilhem Saurel
hpp-fcl
Commits
73f1adf6
Commit
73f1adf6
authored
May 27, 2020
by
Joseph Mirabel
Browse files
[CMake] Do not hardcode CMAKE_CXX_STANDARD.
parent
620fa8d3
Changes
1
Hide whitespace changes
Inline
Side-by-side
CMakeLists.txt
View file @
73f1adf6
...
...
@@ -41,10 +41,6 @@ set(PROJECT_DESCRIPTION
)
SET
(
PROJECT_USE_CMAKE_EXPORT TRUE
)
IF
(
NOT DEFINED CMAKE_CXX_STANDARD
)
SET
(
CMAKE_CXX_STANDARD 98
)
ENDIF
()
# Do not support CMake older than 2.8.12
CMAKE_POLICY
(
SET CMP0022 NEW
)
SET
(
PROJECT_USE_KEYWORD_LINK_LIBRARIES TRUE
)
...
...
@@ -100,6 +96,9 @@ endif()
option
(
HPP_FCL_HAS_QHULL
"use qhull library to compute convex hulls."
FALSE
)
if
(
HPP_FCL_HAS_QHULL
)
if
(
DEFINED CMAKE_CXX_STANDARD AND CMAKE_CXX_STANDARD EQUAL 98
)
message
(
FATAL_ERROR
"Cannot use qhull library with C++ < 11.
\n
You may add -DCMAKE_CXX_STANDARD=11"
)
endif
()
file
(
MAKE_DIRECTORY
${
CMAKE_CURRENT_BINARY_DIR
}
/third-parties
)
execute_process
(
COMMAND
${
CMAKE_COMMAND
}
-E create_symlink
${
CMAKE_SOURCE_DIR
}
/third-parties/qhull/src/libqhullcpp
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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