diff options
author | Kim Kulling <kimkulling@users.noreply.github.com> | 2021-12-16 19:41:09 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-12-16 19:41:09 +0100 |
commit | 1a4d4fb54538f8a313b008806f147175e4fad932 (patch) | |
tree | 9455d2f151516e4207cf213b5da7a1422961a702 | |
parent | c4d858cf4d861084d3ad0b1c66bf3991ae1d0ddd (diff) |
Enable C++17 and C99upstream/kimkulling-enable_language_support_issue4257-1
- closes https://github.com/assimp/assimp/issues/4257
-rw-r--r-- | CMakeLists.txt | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 22df03370..b96f915bd 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -182,8 +182,10 @@ SET (ASSIMP_SOVERSION 5) SET( ASSIMP_PACKAGE_VERSION "0" CACHE STRING "the package-specific version used for uploading the sources" ) if(NOT ASSIMP_HUNTER_ENABLED) - # Enable C++11 support globally - set_property( GLOBAL PROPERTY CXX_STANDARD 11 ) + # Enable C++17 support globally + set(CMAKE_CXX_STANDARD 17) + set(CMAKE_CXX_STANDARD_REQUIRED ON) + set(CMAKE_C_STANDARD 99) endif() IF(NOT ASSIMP_IGNORE_GIT_HASH) |