Undefine NDEBUG for tests - cmake version. See issue #501.

This commit is contained in:
Eric Haszlakiewicz
2019-12-05 23:18:59 -05:00
parent 37b4da6b92
commit 0819a55ffb

View 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()