@@ -53,14 +53,6 @@ else()
53
53
endif ()
54
54
55
55
# Provide convenient boolean expression based on build type
56
- if (CMAKE_BUILD_TYPE MATCHES "Debug" )
57
- set (IS_DEBUG_BUILD True )
58
- set (IS_NOT_DEBUG_BUILD False )
59
- else ()
60
- set (IS_DEBUG_BUILD False )
61
- set (IS_NOT_DEBUG_BUILD True )
62
- endif ()
63
-
64
56
if (CMAKE_BUILD_TYPE MATCHES "MinSizeRel" )
65
57
set (IS_MINSIZE_BUILD True )
66
58
set (IS_NOT_MINSIZE_BUILD False )
@@ -299,15 +291,15 @@ option(DO_MEMORY_USAGE
299
291
enables you to define the variable 'track-memory-usage' at runtime
300
292
to help track memory leaks, and also report total memory usage on
301
293
PStats. There is some small overhead for having this ability
302
- available, even if it is unused." ${IS_DEBUG_BUILD} )
294
+ available, even if it is unused." OFF )
303
295
list (APPEND PER_CONFIG_OPTIONS DO_MEMORY_USAGE )
304
296
set (DO_MEMORY_USAGE_Debug ON CACHE BOOL "" )
305
297
306
298
option (SIMULATE_NETWORK_DELAY
307
299
"This option compiles in support for simulating network delay via
308
300
the min-lag and max-lag prc variables. It adds a tiny bit of
309
301
overhead even when it is not activated, so it is typically enabled
310
- only in a development build." ${IS_DEBUG_BUILD} )
302
+ only in a development build." OFF )
311
303
list (APPEND PER_CONFIG_OPTIONS SIMULATE_NETWORK_DELAY )
312
304
set (SIMULATE_NETWORK_DELAY_Debug ON CACHE BOOL "" )
313
305
@@ -317,14 +309,14 @@ rendering. Since this is normally useful only for researching
317
309
buggy drivers, and since there is a tiny bit of per-primitive
318
310
overhead to have this option available even if it is unused, it is
319
311
by default enabled only in a development build. This has no effect
320
- on DirectX rendering." ${IS_DEBUG_BUILD} )
312
+ on DirectX rendering." OFF )
321
313
list (APPEND PER_CONFIG_OPTIONS SUPPORT_IMMEDIATE_MODE )
322
314
set (SUPPORT_IMMEDIATE_MODE_Debug ON CACHE BOOL "" )
323
315
324
316
option (NOTIFY_DEBUG
325
317
"Do you want to include the 'debug' and 'spam' Notify messages?
326
318
Normally, these are stripped out when we build for release, but sometimes it's
327
- useful to keep them around. Turn this setting on to achieve that." ${IS_DEBUG_BUILD} )
319
+ useful to keep them around. Turn this setting on to achieve that." OFF )
328
320
list (APPEND PER_CONFIG_OPTIONS NOTIFY_DEBUG )
329
321
set (NOTIFY_DEBUG_Debug ON CACHE BOOL "" )
330
322
@@ -414,10 +406,9 @@ mark_as_advanced(ANDROID_NDK_HOME ANDROID_ABI ANDROID_STL
414
406
415
407
# By default, we'll assume the user only wants to run with Debug
416
408
# python if he has to--that is, on Windows when building a debug build.
417
- if (WIN32 AND IS_DEBUG_BUILD )
418
- set (USE_DEBUG_PYTHON ON )
419
- else ()
420
- set (USE_DEBUG_PYTHON OFF )
409
+ set (USE_DEBUG_PYTHON OFF )
410
+ if (WIN32 )
411
+ set (USE_DEBUG_PYTHON_Debug ON )
421
412
endif ()
422
413
list (APPEND PER_CONFIG_OPTIONS USE_DEBUG_PYTHON )
423
414
@@ -574,7 +565,7 @@ slightly slow down Panda for the single CPU case."
574
565
IMPORTED_AS Threads::Threads )
575
566
576
567
# Configure debug threads
577
- option (DEBUG_THREADS "If on, enables debugging of thread and sync operations (i.e. mutexes, deadlocks)" ${IS_DEBUG_BUILD} )
568
+ option (DEBUG_THREADS "If on, enables debugging of thread and sync operations (i.e. mutexes, deadlocks)" OFF )
578
569
list (APPEND PER_CONFIG_OPTIONS DEBUG_THREADS )
579
570
set (DEBUG_THREADS_Debug ON CACHE BOOL "" )
580
571
0 commit comments