Explorar el Código

Improve compiler flags to force C++ standard

Patrick-Christopher Mattulat hace 13 horas
padre
commit
34e0b244aa
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  1. 2 2
      CMakeLists.txt

+ 2 - 2
CMakeLists.txt

@@ -77,8 +77,8 @@ endif ()
 
 message("${PROJECT_NAME}: Setting compiler flags...")
 set(CMAKE_CXX_STANDARD 17)
-set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS}")
-set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS}")
+set(CMAKE_CXX_STANDARD_REQUIRED ON)
+set(CMAKE_CXX_EXTENSIONS OFF)
 
 ##########################################################
 # Compiler Support