Move and clean up standards

This commit is contained in:
Paul Fd 2020-03-11 15:32:32 +01:00
parent 57d9598ab3
commit 26afbcd455
2 changed files with 2 additions and 7 deletions

View file

@ -1,7 +1,5 @@
# Do not override the C++ standard if set to more than 11
if (NOT CMAKE_CXX_STANDARD OR CMAKE_CXX_STANDARD LESS 11)
set(CMAKE_CXX_STANDARD 11)
endif()
set(CMAKE_CXX_STANDARD 11)
set(CMAKE_C_STANDARD 99)
# Export the compile_commands.json file
set (CMAKE_EXPORT_COMPILE_COMMANDS ON)

View file

@ -3,9 +3,6 @@ set (LV2PLUGIN_PRJ_NAME "${PROJECT_NAME}_lv2")
# Set the build directory as <build_dir>/lv2/<plugin_name>.lv2/
set (PROJECT_BINARY_DIR "${PROJECT_BINARY_DIR}/${PROJECT_NAME}.lv2")
# C99 or higher is needed
set(CMAKE_C_STANDARD 99)
# LV2 plugin specific settings
include (LV2Config)