- set the GLSL compiler to always be built as Release.

The compile times for the shaders in debug mode are simply far too long when compiled as Debug.
This commit is contained in:
Christoph Oelckers 2019-03-24 13:59:46 +01:00
parent 91dfebd211
commit d3c02c75ba
3 changed files with 9 additions and 0 deletions

View file

@ -1,5 +1,8 @@
cmake_minimum_required(VERSION 2.8.12)
make_release_only()
set( CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${ZD_FASTMATH_FLAG}" )
# Request C++11
if(${CMAKE_VERSION} VERSION_LESS 3.1)
# CMake versions before 3.1 do not understand CMAKE_CXX_STANDARD

View file

@ -1,5 +1,8 @@
cmake_minimum_required(VERSION 2.8.12)
make_release_only()
set( CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${ZD_FASTMATH_FLAG}" )
if(WIN32)
add_subdirectory(OSDependent/Windows)
elseif(UNIX)

View file

@ -1,5 +1,8 @@
cmake_minimum_required(VERSION 2.8.12)
make_release_only()
set( CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${ZD_FASTMATH_FLAG}" )
# Request C++11
if(${CMAKE_VERSION} VERSION_LESS 3.1)
# CMake versions before 3.1 do not understand CMAKE_CXX_STANDARD