X-Git-Url: https://git.stg.codes/stg.git/blobdiff_plain/a5cb4cf37e5dfa9bb9ce5c5e4ccf8d5978d3576f..a500fb72810060e52d87ad2c2e4691531f0bcc5a:/CMakeLists.txt diff --git a/CMakeLists.txt b/CMakeLists.txt index 100f9c00..6263a243 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -4,10 +4,6 @@ project ( Stargazer ) set ( CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake/modules ) -if ( CMAKE_COMPILER_IS_GNUCC AND CMAKE_CXX_COMPILER_VERSION VERSION_LESS 6.5 ) - message ( FATAL_ERROR "Require at least gcc-6.5" ) -endif( CMAKE_COMPILER_IS_GNUCC AND CMAKE_CXX_COMPILER_VERSION VERSION_LESS 6.5 ) - option ( BUILD_STG "Build Stargazer server." OFF ) option ( BUILD_SGCONF "Build SGConf client." OFF ) option ( BUILD_RSCRIPTD "Build RScriptD server." OFF ) @@ -106,7 +102,7 @@ if ( BUILD_MOD_SMUX OR BUILD_ALL_LIBS ) endif ( BUILD_MOD_SMUX OR BUILD_ALL_LIBS ) enable_language (CXX) -set (CMAKE_CXX_STANDARD 14) +set (CMAKE_CXX_STANDARD 17) set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -W -Wall -Wextra -Wshadow -Wno-long-long -Wold-style-cast -Wstrict-aliasing -pedantic") if ( CMAKE_COMPILER_IS_GNUCC ) @@ -141,10 +137,12 @@ else () endif () include_directories ( include ) +include_directories ( 3rdparty/jthread/source ) add_subdirectory ( libs ) add_subdirectory ( projects ) if ( BUILD_TESTS ) + enable_testing () add_subdirectory ( tests ) endif ( BUILD_TESTS )