# Compiler settings for ViewDesignEngine if(CMAKE_CXX_COMPILER_ID MATCHES "GNU|Clang|AppleClang") target_compile_options(vde_compile_options INTERFACE -Wall -Wextra -Wno-sign-conversion -Wno-conversion -Wno-unused-parameter ) if(ENABLE_SANITIZERS) target_compile_options(vde_compile_options INTERFACE -fsanitize=address,undefined -fno-omit-frame-pointer ) target_link_options(vde_compile_options INTERFACE -fsanitize=address,undefined ) endif() endif() if(CMAKE_CXX_COMPILER_ID STREQUAL "MSVC") target_compile_options(vde_compile_options INTERFACE /W3 /permissive- /utf-8) target_compile_definitions(vde_compile_options INTERFACE _CRT_SECURE_NO_WARNINGS NOMINMAX) endif() target_compile_definitions(vde_compile_options INTERFACE VDE_VERSION_MAJOR=${PROJECT_VERSION_MAJOR} VDE_VERSION_MINOR=${PROJECT_VERSION_MINOR} )