Skip to content

Commit 5e11811

Browse files
added def for debug compile
1 parent deffc2c commit 5e11811

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

tsc/test/tester/CMakeLists.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,10 @@ set(CMAKE_CXX_EXTENSIONS OFF)
6666

6767
set_Options()
6868

69+
if ("${CMAKE_BUILD_TYPE}" STREQUAL "Debug")
70+
message(STATUS ">>> Test-runner is DEBUG")
71+
add_definitions(test-runner -DNDEBUG)
72+
endif()
6973
add_executable(test-runner test-runner.cpp)
7074
target_link_libraries(test-runner PRIVATE ${LIBS})
7175
string(TOLOWER "${CMAKE_BUILD_TYPE}" CMAKE_BUILD_TYPE_LOWERCASE)

0 commit comments

Comments
 (0)