Fix build flags for tests
The default C flags for all build types other than 'Debug' sets -DNDEBUG which disables assert(), and breaks tests. This switches tests to use 'Debug' instead, reenabling asserts.
This commit is contained in:
parent
4c1f595d98
commit
e5f1938cc6
@ -17,6 +17,9 @@ include_directories(
|
||||
../include/compat
|
||||
)
|
||||
|
||||
# force 'Debug' build type for tests to not disable asserts
|
||||
set(CMAKE_BUILD_TYPE "Debug")
|
||||
|
||||
add_definitions(-D_PATH_SSL_CA_FILE=\"${CMAKE_CURRENT_SOURCE_DIR}/../cert.pem\")
|
||||
|
||||
file(TO_NATIVE_PATH ${CMAKE_CURRENT_SOURCE_DIR} TEST_SOURCE_DIR)
|
||||
|
Loading…
x
Reference in New Issue
Block a user