]> granicus.if.org Git - json-c/commitdiff
Undefine NDEBUG for tests - cmake version. See issue #501.
authorEric Haszlakiewicz <erh+git@nimenees.com>
Fri, 6 Dec 2019 04:18:59 +0000 (23:18 -0500)
committerEric Haszlakiewicz <erh+git@nimenees.com>
Fri, 6 Dec 2019 04:18:59 +0000 (23:18 -0500)
tests/CMakeLists.txt

index d452017026dc8cf7068f56a77409076919e47b7a..72679db5d2ea390bf0ea04413a925f9cf88eba2c 100644 (file)
@@ -52,3 +52,8 @@ target_link_libraries(
 
 endforeach(TESTNAME)
 
+# Make sure NDEBUG is always undefined for tests
+if (UNIX OR MINGW OR CYGWIN)
+    list(APPEND CMAKE_C_FLAGS -UNDEBUG)
+endif()
+