Explorar o código

Make sure at least C++11 is used

Apparently on macOS we weren't building using c++11, causing a compile error because of a nullptr.
Considering the ubiquitous support for c++11 these days, just enable it.
Bart van Strien hai 1 ano
pai
achega
2fb36d9944
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      src/CMakeLists.txt

+ 1 - 0
src/CMakeLists.txt

@@ -2,6 +2,7 @@ cmake_minimum_required (VERSION 3.13)
 
 ### Basic compilation settings
 set (CMAKE_POSITION_INDEPENDENT_CODE TRUE)
+set (CMAKE_CXX_STANDARD 11)
 
 include_directories (
 	${CMAKE_CURRENT_SOURCE_DIR}