2026-07-23 05:27:51 +00:00
|
|
|
# Compiler settings for ViewDesignEngine
|
|
|
|
|
|
|
|
|
|
if(CMAKE_CXX_COMPILER_ID MATCHES "GNU|Clang|AppleClang")
|
|
|
|
|
target_compile_options(vde_compile_options INTERFACE
|
2026-07-23 08:19:24 +00:00
|
|
|
-Wall -Wextra
|
|
|
|
|
-Wno-sign-conversion
|
|
|
|
|
-Wno-conversion
|
|
|
|
|
-Wno-unused-parameter
|
2026-07-23 05:27:51 +00:00
|
|
|
)
|
|
|
|
|
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")
|
2026-07-23 08:19:24 +00:00
|
|
|
target_compile_options(vde_compile_options INTERFACE /W3 /permissive- /utf-8)
|
|
|
|
|
target_compile_definitions(vde_compile_options INTERFACE _CRT_SECURE_NO_WARNINGS NOMINMAX)
|
2026-07-23 05:27:51 +00:00
|
|
|
endif()
|
|
|
|
|
|
|
|
|
|
target_compile_definitions(vde_compile_options INTERFACE
|
|
|
|
|
VDE_VERSION_MAJOR=${PROJECT_VERSION_MAJOR}
|
|
|
|
|
VDE_VERSION_MINOR=${PROJECT_VERSION_MINOR}
|
|
|
|
|
)
|