Replaced per-sample validation define with global define in base class
Toggling validation via command line arguments is the preferred way anyway Define was also added as a CMake option
This commit is contained in:
parent
a04a506353
commit
d0211d1f14
86 changed files with 90 additions and 205 deletions
|
|
@ -22,6 +22,7 @@ OPTION(USE_DIRECTFB_WSI "Build the project using DirectFB swapchain" OFF)
|
|||
OPTION(USE_WAYLAND_WSI "Build the project using Wayland swapchain" OFF)
|
||||
OPTION(USE_HEADLESS "Build the project using headless extension swapchain" OFF)
|
||||
OPTION(USE_RELATIVE_ASSET_PATH "Load assets (shaders, models, textures) from a fixed path relative to the binar" OFF)
|
||||
OPTION(FORCE_VALIDATION "Forces validation on for all samples at compile time (prefer using the -v / --validation command line arguments)" OFF)
|
||||
|
||||
set(RESOURCE_INSTALL_DIR "" CACHE PATH "Path to install resources to (leave empty for running uninstalled)")
|
||||
|
||||
|
|
@ -128,6 +129,11 @@ else()
|
|||
endif()
|
||||
endif()
|
||||
|
||||
# Force validation at compile time
|
||||
if (FORCE_VALIDATION)
|
||||
add_definitions(-DFORCE_VALIDATION)
|
||||
endif()
|
||||
|
||||
# Compiler specific stuff
|
||||
IF(MSVC)
|
||||
SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /EHsc")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue