Browse Source

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

tags/json-c-0.14-20200419
Eric Haszlakiewicz 6 years ago
parent
commit
0819a55ffb
1 changed files with 5 additions and 0 deletions
  1. +5
    -0
      tests/CMakeLists.txt

+ 5
- 0
tests/CMakeLists.txt 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()


Loading…
Cancel
Save