From b84802e075ddb670ccce71fe74f1bd6a76f0d32b Mon Sep 17 00:00:00 2001 From: jchristopherson Date: Tue, 12 Sep 2017 07:44:51 -0500 Subject: [PATCH] Update build script --- CMakeLists.txt | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 3ba7ee2..8a01dfc 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -103,6 +103,8 @@ include_directories(${PROJECT_SOURCE_DIR}/include) set(c_test_source test/ferror_test_c.c) add_executable(ferror_test_c ${c_test_source}) target_link_libraries(ferror_test_c ferror) -add_custom_command(OUTPUT c_api_test DEPENDS ${c_test_source} - COMMAND ferror_test_c) -add_custom_target(run_c_api_test ALL DEPENDS c_api_test) +if (CMAKE_BUILD_TYPE MATCHES Debug) + add_custom_command(OUTPUT c_api_test DEPENDS ${c_test_source} + COMMAND ferror_test_c) + add_custom_target(run_c_api_test ALL DEPENDS c_api_test) +endif()