Skip to content

Commit 23fb31a

Browse files
author
JordanHendersonMusic
committed
Cmake force c++ 17
Supercollider uses c++17, not 11.
1 parent e559387 commit 23fb31a

File tree

2 files changed

+6
-7
lines changed

2 files changed

+6
-7
lines changed

CMakeLists.txt

+4-7
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,6 @@ option(QUARKS "Install plugins as quarks")
6969
option(OSX_PACKAGE "Package dmg for Apple")
7070
option(IN_PLACE_BUILD "Build and install in cmake build folder" ON)
7171
option(NOVA_SIMD "Build VBAP with nova-simd support." ON)
72-
option(CPP11 "Build with c++11." ON)
7372
option(NATIVE "Optimize for this specific machine." OFF)
7473
option(SYSTEM_STK "Use STK libraries from system" OFF)
7574
option(HOA_UGENS "Build with HOAUGens (Higher-order Ambisonics)" ON)
@@ -119,12 +118,10 @@ if(CMAKE_COMPILER_IS_GNUCXX OR CMAKE_COMPILER_IS_CLANG)
119118
add_definitions(-march=native)
120119
endif()
121120

122-
if(CPP11)
123-
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")
124-
if(CMAKE_COMPILER_IS_CLANG)
125-
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -stdlib=libc++")
126-
endif()
127-
endif()
121+
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++17")
122+
if(CMAKE_COMPILER_IS_CLANG)
123+
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -stdlib=libc++")
124+
endif()
128125
endif()
129126
if(MINGW)
130127
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -mstackrealign")

README.md

+2
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,8 @@ git clone --recursive https://github.com/supercollider/sc3-plugins.git
5050
git clone --recursive https://github.com/supercollider/supercollider.git
5151
```
5252

53+
Note, if you are building for an older version of supercollider you should checkout the sc3-plugins tag which matches the version of supercollider.
54+
5355
Be sure to use `--recursive`, or to initialize the submodules after cloning, otherwise you will not have files
5456
that are necessary to build the project.
5557

0 commit comments

Comments
 (0)