mirror of
https://foundry.openuru.org/gitblit/r/CWE-ou-minkata.git
synced 2025-07-19 19:59:09 +00:00
Set HS_DEBUGGING properly on non-MSVC compilers
This commit is contained in:
@ -11,6 +11,13 @@ if(CMAKE_COMPILER_IS_GNUCXX OR CMAKE_COMPILER_IS_CLANGXX)
|
||||
endif()
|
||||
endif()
|
||||
|
||||
# MSVC automatically defines -D_DEBUG when /MTd or /MDd is set, so we
|
||||
# need to make sure it gets added for other compilers too
|
||||
if(CMAKE_COMPILER_IS_GNUCXX OR CMAKE_COMPILER_IS_CLANGXX)
|
||||
set(CMAKE_C_FLAGS_DEBUG "${CMAKE_C_FLAGS_DEBUG} -D_DEBUG")
|
||||
set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -D_DEBUG")
|
||||
endif()
|
||||
|
||||
|
||||
# Compile-time type size checks
|
||||
include(CheckTypeSize)
|
||||
|
Reference in New Issue
Block a user