From 94e4c0915de68e6d973e909fe5cdbd2ab91cd895 Mon Sep 17 00:00:00 2001 From: Scott K Logan Date: Mon, 21 Oct 2019 17:02:22 -0700 Subject: [PATCH] Skip some tests when BUILD_IDLC=OFF These tests use `idlc_generate`, which is not available when `BUILD_IDLC` is not `ON`. Signed-off-by: Scott K Logan --- src/core/ddsc/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/ddsc/CMakeLists.txt b/src/core/ddsc/CMakeLists.txt index b28a481..b32a4b5 100644 --- a/src/core/ddsc/CMakeLists.txt +++ b/src/core/ddsc/CMakeLists.txt @@ -114,7 +114,7 @@ install( COMPONENT dev) # TODO: improve test inclusion. -if((BUILD_TESTING) AND ((NOT DEFINED MSVC_VERSION) OR (MSVC_VERSION GREATER "1800"))) +if((BUILD_TESTING) AND (BUILD_IDLC) AND ((NOT DEFINED MSVC_VERSION) OR (MSVC_VERSION GREATER "1800"))) add_subdirectory("${CMAKE_CURRENT_LIST_DIR}/tests") endif()