Selaa lähdekoodia

Expose USE_ASSERTS flag for enabling Jolt asserts

Lucien Greathouse 6 kuukautta sitten
vanhempi
commit
9dfa251431
1 muutettua tiedostoa jossa 3 lisäystä ja 0 poistoa
  1. 3 0
      CMakeLists.txt

+ 3 - 0
CMakeLists.txt

@@ -1,5 +1,8 @@
 cmake_minimum_required(VERSION 3.16 FATAL_ERROR)
 
+# Enable assertions in JoltPhysics
+option(USE_ASSERTS "Enable asserts" OFF)
+
 # When turning this option on, the library will be compiled using doubles for positions. This allows for much bigger worlds.
 option(DOUBLE_PRECISION "Use double precision math" OFF)