Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
OpenVolumeMesh
OpenVolumeMesh
Commits
0d447e1d
Commit
0d447e1d
authored
Aug 19, 2019
by
Martin Heistermann
Browse files
Create c++ version detection macros OVM_CXX_{14,17}.
parent
aef0ecb4
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/CMakeLists.txt
View file @
0d447e1d
...
...
@@ -134,6 +134,7 @@ target_compile_definitions(OpenVolumeMesh
target_compile_options
(
OpenVolumeMesh PRIVATE
"$<$<CXX_COMPILER_ID:MSVC>:/W1>"
"$<$<CXX_COMPILER_ID:MSVC>:/Zc:__cplusplus>"
# Enable updated __cplusplus macro
"$<$<CXX_COMPILER_ID:GNU>:-Wall>"
"$<$<CXX_COMPILER_ID:Clang>:-Wall;-Wno-c++98-compat;-Wno-c++98-compat-pedantic;-Wno-weak-vtables;-Wno-padded;-Wno-sign-conversion;-Wno-missing-prototypes>"
)
...
...
src/OpenVolumeMesh/System/Compiler.hh
0 → 100644
View file @
0d447e1d
#if __cplusplus >= 201402L
#define OVM_CXX_14 1
#else
#define OVM_CXX_14 0
#endif
#if __cplusplus >= 201703L
#define OVM_CXX_17 1
#else
#define OVM_CXX_17 0
#endif
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