mirror of
https://github.com/json-c/json-c.git
synced 2026-04-06 05:49:07 +08:00
Undefine NDEBUG for tests - cmake version. See issue #501.
This commit is contained in:
@@ -52,3 +52,8 @@ target_link_libraries(
|
|||||||
|
|
||||||
endforeach(TESTNAME)
|
endforeach(TESTNAME)
|
||||||
|
|
||||||
|
# Make sure NDEBUG is always undefined for tests
|
||||||
|
if (UNIX OR MINGW OR CYGWIN)
|
||||||
|
list(APPEND CMAKE_C_FLAGS -UNDEBUG)
|
||||||
|
endif()
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user