فهرست منبع

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 1 سال پیش
والد
کامیت
2fb36d9944
1فایلهای تغییر یافته به همراه1 افزوده شده و 0 حذف شده
  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}