mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-01-19 20:24:49 +00:00
Adjusts logic for definingi TORQUE_DEBUG and TORQUE_RELEASE to be consistent across platforms
This commit is contained in:
parent
63f7045fd8
commit
04e108729e
|
|
@ -161,14 +161,6 @@ mark_as_advanced(TORQUE_DEDICATED)
|
||||||
###############################################################################
|
###############################################################################
|
||||||
# options
|
# options
|
||||||
###############################################################################
|
###############################################################################
|
||||||
if(NOT MSVC AND NOT APPLE) # handle single-configuration generator
|
|
||||||
set(TORQUE_BUILD_TYPE "Debug" CACHE STRING "Select one of Debug, Release and RelWithDebInfo")
|
|
||||||
set_property(CACHE TORQUE_BUILD_TYPE PROPERTY STRINGS "Debug" "Release" "RelWithDebInfo")
|
|
||||||
|
|
||||||
set(TORQUE_ADDITIONAL_LINKER_FLAGS "" CACHE STRING "Additional linker flags")
|
|
||||||
mark_as_advanced(TORQUE_ADDITIONAL_LINKER_FLAGS)
|
|
||||||
endif()
|
|
||||||
|
|
||||||
option(TORQUE_SECURE_VFS "Secure VFS configuration. Arbitrary script access to file system will be heavily restricted." OFF)
|
option(TORQUE_SECURE_VFS "Secure VFS configuration. Arbitrary script access to file system will be heavily restricted." OFF)
|
||||||
mark_as_advanced(TORQUE_SECURE_VFS)
|
mark_as_advanced(TORQUE_SECURE_VFS)
|
||||||
|
|
||||||
|
|
@ -251,20 +243,6 @@ if(WIN32)
|
||||||
endif()
|
endif()
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
# build types
|
|
||||||
if(NOT MSVC AND NOT APPLE) # handle single-configuration generator
|
|
||||||
set(CMAKE_BUILD_TYPE ${TORQUE_BUILD_TYPE})
|
|
||||||
if(CMAKE_BUILD_TYPE STREQUAL "Debug")
|
|
||||||
set(TORQUE_DEBUG TRUE)
|
|
||||||
elseif(CMAKE_BUILD_TYPE STREQUAL "Release")
|
|
||||||
set(TORQUE_RELEASE TRUE)
|
|
||||||
elseif(CMAKE_BUILD_TYPE STREQUAL "RelWithDebInfo")
|
|
||||||
set(TORQUE_RELEASE TRUE)
|
|
||||||
else()
|
|
||||||
message(FATAL_ERROR "Please select Debug, Release or RelWithDebInfo for TORQUE_BUILD_TYPE")
|
|
||||||
endif()
|
|
||||||
endif()
|
|
||||||
|
|
||||||
###############################################################################
|
###############################################################################
|
||||||
# Always enabled paths first
|
# Always enabled paths first
|
||||||
###############################################################################
|
###############################################################################
|
||||||
|
|
@ -786,6 +764,7 @@ endif()
|
||||||
# Always enabled Definitions
|
# Always enabled Definitions
|
||||||
###############################################################################
|
###############################################################################
|
||||||
addDef(TORQUE_DEBUG Debug)
|
addDef(TORQUE_DEBUG Debug)
|
||||||
|
addDef(TORQUE_RELEASE "RelWithDebInfo;Release")
|
||||||
addDef(TORQUE_ENABLE_ASSERTS "Debug;RelWithDebInfo")
|
addDef(TORQUE_ENABLE_ASSERTS "Debug;RelWithDebInfo")
|
||||||
addDef(TORQUE_DEBUG_GFX_MODE "RelWithDebInfo")
|
addDef(TORQUE_DEBUG_GFX_MODE "RelWithDebInfo")
|
||||||
addDef(TORQUE_SHADERGEN)
|
addDef(TORQUE_SHADERGEN)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue