From 9d54dbee9d9f7253ffe20e7a9a7c84e6bbf038af Mon Sep 17 00:00:00 2001 From: falkTX Date: Wed, 24 May 2023 02:38:01 +0200 Subject: [PATCH] Cleanup cmake side Signed-off-by: falkTX --- cmake/CMakeLists.txt | 28 ++++++++++++++++++++++++---- 1 file changed, 24 insertions(+), 4 deletions(-) diff --git a/cmake/CMakeLists.txt b/cmake/CMakeLists.txt index c7d5ec373..3ee92b19a 100644 --- a/cmake/CMakeLists.txt +++ b/cmake/CMakeLists.txt @@ -25,8 +25,6 @@ if(NOT (APPLE OR HAIKU OR WIN32)) set(CARLA_LIBRT rt) endif() -# set(carla_pthread_libs ${CMAKE_THREAD_LIBS_INIT}) - ####################################################################################################################### # optional dependencies @@ -169,6 +167,8 @@ set_common_target_properties(carla-lilv_serd) target_compile_options(carla-lilv_serd PRIVATE $<$:/wd4005 /wd4090 /wd4133> + $<$:-Wno-format-overflow> + $<$:-Wno-implicit-fallthrough> ) target_include_directories(carla-lilv_serd @@ -191,6 +191,7 @@ set_common_target_properties(carla-lilv_sord) target_compile_options(carla-lilv_sord PRIVATE $<$:/wd4005 /wd4090 /wd4133> + $<$:-Wno-unused-parameter> # workaround compiler bug, see https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109585 $<$:-fno-strict-aliasing> ) @@ -248,7 +249,10 @@ set_common_target_properties(carla-lilv_lilv) target_compile_options(carla-lilv_lilv PRIVATE $<$:/wd4005 /wd4090 /wd4133> - $<$:-Wno-deprecated-declarations -Wno-discarded-qualifiers> + $<$:-Wno-deprecated-declarations> + $<$:-Wno-discarded-qualifiers> + $<$:-Wno-format-overflow> + $<$:-Wno-unused-parameter> $<$:-Wno-incompatible-pointer-types-discards-qualifiers> ) @@ -480,10 +484,12 @@ target_compile_definitions(carla-ysfx target_compile_options(carla-ysfx PRIVATE $<$:-fsigned-char> + $<$:-Wno-extra> $<$:-Wno-ignored-attributes> $<$:-Wno-sign-compare> $<$:-Wno-unused-function> $<$:-Wno-unused-parameter> + $<$:-Wno-deprecated-copy> ) target_include_directories(carla-ysfx @@ -561,6 +567,15 @@ target_compile_definitions(carla-bridge-native CARLA_LIB_EXT="${CMAKE_SHARED_LIBRARY_SUFFIX}" ) +# FIXME +target_compile_options(carla-bridge-native + PRIVATE + $<$:-Wno-format-truncation> + $<$:-Wno-stringop-overflow> + $<$:-Wno-unused-parameter> + $<$:-Wno-vla> +) + target_include_directories(carla-bridge-native PRIVATE ../source @@ -670,6 +685,7 @@ set_common_target_properties(carla-utils) target_include_directories(carla-utils PRIVATE + ../source ../source/backend ../source/includes ../source/modules @@ -688,6 +704,7 @@ target_link_libraries(carla-utils target_sources(carla-utils PRIVATE ../source/backend/utils/CachedPlugins.cpp + ../source/backend/utils/CarlaUtils.cpp ../source/backend/utils/Information.cpp ../source/backend/utils/JUCE.cpp ../source/backend/utils/PipeClient.cpp @@ -697,7 +714,10 @@ target_sources(carla-utils ) if(APPLE) - set_source_files_properties(../source/backend/utils/Windows.cpp PROPERTIES COMPILE_FLAGS -ObjC++) + set_source_files_properties( + ../source/backend/utils/CarlaUtils.cpp + ../source/backend/utils/Windows.cpp + PROPERTIES COMPILE_FLAGS -ObjC++) endif() #######################################################################################################################