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 <logans@cottsay.net>
This commit is contained in:
Scott K Logan 2019-10-21 17:02:22 -07:00 committed by eboasson
parent 98ce7d1971
commit 94e4c0915d

View file

@ -114,7 +114,7 @@ install(
COMPONENT dev) COMPONENT dev)
# TODO: improve test inclusion. # 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") add_subdirectory("${CMAKE_CURRENT_LIST_DIR}/tests")
endif() endif()