From f0d98216ca3de4bda5fa159d015f98477d3a4513 Mon Sep 17 00:00:00 2001 From: 0scar Date: Fri, 28 Jul 2023 20:44:08 +0200 Subject: Disable pedantics when compilining hostreload --- CMakeLists.txt | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'CMakeLists.txt') diff --git a/CMakeLists.txt b/CMakeLists.txt index c7355a6..5310b19 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -24,7 +24,7 @@ cmake_dependent_option(DAW_BUILD_DEBUG # unused cmake_dependent_option(DAW_BUILD_HOTRELOAD "Compile daw engine with hot reloading enabled" ON - "NOT CMAKE_PROJECT_NAME STREQUAL PROJECT_NAME;CMAKE_BUILD_TYPE STREQUAL Debug;NOT WIN32" OFF) + "NOT CMAKE_PROJECT_NAME STREQUAL PROJECT_NAME;CMAKE_BUILD_TYPE STREQUAL Debug;NOT WIN32;BUILD_SHARED_LIBS" OFF) cmake_dependent_option(DAW_BUILD_ASAN "Compile daw engine with address sanitizer (asan)" ON @@ -87,7 +87,9 @@ target_link_libraries(${PROJECT_NAME} target_compile_features(${PROJECT_NAME} PRIVATE c_std_99) target_compile_options(${PROJECT_NAME} PUBLIC - $<$>:-Wall -Wextra -pedantic> + $<$>:-Wall -Wextra> + # Dont be pedantic when using hot reloading. + $<$>,$>>:-pedantic> $<$:/W4> # Debug related flags. sorry windows, you're just not that important. $<$>,$>:-Og -ggdb3 -fno-omit-frame-pointer> -- cgit v1.3