Subversion Repositories Scribus

Compare Revisions

Ignore whitespace Rev 24859 → Rev 24860

/trunk/Scribus/CMakeLists.txt
397,17 → 397,17
#as of 1.7.0.svn, require C++17
#yes the below conditions suggest 20/23 support. Yeah, nah..
set (WANT_CPP17 ON)
 
if(NOT WANT_CPP20 AND NOT WANT_CPP23)
if(WANT_CPP17)
message(STATUS "Enabling C++17 compiler features")
set(CMAKE_CXX_STANDARD 17)
endif()
if (WANT_CPP20)
message(STATUS "Enabling C++20 compiler features")
set(CMAKE_CXX_STANDARD 20)
elseif(WANT_CPP23)
message(STATUS "Enabling C++23 compiler features")
else()
if (WANT_CPP20)
message(STATUS "Enabling C++20 compiler features")
set(CMAKE_CXX_STANDARD 20)
elseif(WANT_CPP23)
message(STATUS "Enabling C++23 compiler features")
set(CMAKE_CXX_STANDARD 23)
endif()
endif()
set (CMAKE_CXX_STANDARD_REQUIRED ON)
set (CMAKE_CXX_EXTENSIONS OFF)