Skip to content

Commit

Permalink
Require c++17 for std::as_const()
Browse files Browse the repository at this point in the history
  • Loading branch information
BSDKaffee committed Nov 22, 2023
1 parent be42e72 commit d8ce118
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions qucs/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -79,12 +79,10 @@ IF(QT_VERSION_MAJOR EQUAL 6)
set(CMAKE_AUTOUIC ON)
set(CMAKE_AUTOMOC ON)
set(CMAKE_AUTORCC ON)
ENDIF()

set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
ELSE()
set(CMAKE_CXX_STANDARD 11)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
ENDIF()

if (MSVC)
add_compile_options(/Zc:__cplusplus /permissive- /MP /Zc:preprocessor)
Expand Down

0 comments on commit d8ce118

Please sign in to comment.