Override the CXX_STANDARD to 17 for plugins
This commit is contained in:
parent
1c8f3342d8
commit
567f5970d9
2 changed files with 5 additions and 4 deletions
4
.github/workflows/build.yml
vendored
4
.github/workflows/build.yml
vendored
|
|
@ -73,7 +73,6 @@ jobs:
|
|||
-B build
|
||||
-S .
|
||||
-D CMAKE_BUILD_TYPE=${{ env.build_type }}
|
||||
-D CMAKE_CXX_STANDARD=17
|
||||
-D SFIZZ_JACK=OFF
|
||||
-D SFIZZ_RENDER=OFF
|
||||
-D SFIZZ_SHARED=OFF
|
||||
|
|
@ -122,7 +121,6 @@ jobs:
|
|||
-B build
|
||||
-S .
|
||||
-D CMAKE_BUILD_TYPE=${{ env.build_type }}
|
||||
-D CMAKE_CXX_STANDARD=17
|
||||
-D SFIZZ_SHARED=OFF
|
||||
-D PLUGIN_AU=ON
|
||||
-D PLUGIN_LV2=ON
|
||||
|
|
@ -198,7 +196,6 @@ jobs:
|
|||
-B build `
|
||||
-S . `
|
||||
-D CMAKE_BUILD_TYPE=${{ env.build_type }} `
|
||||
-D CMAKE_CXX_STANDARD=17 `
|
||||
-D PLUGIN_LV2=ON `
|
||||
-D PLUGIN_PUREDATA=ON `
|
||||
-D PLUGIN_VST3=ON
|
||||
|
|
@ -314,7 +311,6 @@ jobs:
|
|||
-B build
|
||||
-S .
|
||||
-D CMAKE_BUILD_TYPE=${{ env.build_type }}
|
||||
-D CMAKE_CXX_STANDARD=17
|
||||
-D ENABLE_LTO=OFF
|
||||
-D SFIZZ_SNDFILE_STATIC=ON
|
||||
-D SFIZZ_JACK=OFF
|
||||
|
|
|
|||
|
|
@ -52,6 +52,11 @@ if(WIN32)
|
|||
add_compile_definitions(_WIN32_WINNT=0x0A00)
|
||||
endif()
|
||||
|
||||
# Override sfizz CXX standard since vstgui requires 17 anyway
|
||||
if (PLUGIN_AU OR PLUGIN_LV2_UI OR PLUGIN_VST3 OR PLUGIN_VST2)
|
||||
set(CMAKE_CXX_STANDARD 17 CACHE STRING "C++ standard to be used")
|
||||
endif()
|
||||
|
||||
include(SfizzConfig) # Re-used for this project
|
||||
include(BundleDylibs)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue