Commit c0570165 authored by Martin Heistermann's avatar Martin Heistermann

Determine C++ version at library configure time, not at client build time.

parent 9744578e
Pipeline #11807 passed with stage
in 3 minutes and 57 seconds
...@@ -5,3 +5,5 @@ ...@@ -5,3 +5,5 @@
#define OPENVOLUMEMESH_VERSION_MINOR @OpenVolumeMesh_VERSION_MINOR@ #define OPENVOLUMEMESH_VERSION_MINOR @OpenVolumeMesh_VERSION_MINOR@
#define OPENVOLUMEMESH_VERSION_PATCH @OpenVolumeMesh_VERSION_PATCH@ #define OPENVOLUMEMESH_VERSION_PATCH @OpenVolumeMesh_VERSION_PATCH@
#define OPENVOLUMEMESH_CXX_VERSION @OVM_CXX_VERSION@
#if __cplusplus >= 201402L #include "../Config/Version.hh"
#define OVM_CXX_14 1
#else
#define OVM_CXX_14 0
#endif
#if __cplusplus >= 201703L #if OPENVOLUMEMESH_CXX_VERSION >= 17
#define OVM_CXX_17 1 #define OVM_CXX_17 1
#else #else
#define OVM_CXX_17 0 #define OVM_CXX_17 0
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment