diff --git a/external/CMakeLists.txt b/external/CMakeLists.txt index ba5207fa..e710ddda 100644 --- a/external/CMakeLists.txt +++ b/external/CMakeLists.txt @@ -40,7 +40,7 @@ if (NOT ${SPIRV_SKIP_EXECUTABLES}) "Use shared (DLL) run-time lib even when Google Test is built as static lib." ON) endif() - add_subdirectory(${GMOCK_DIR}) + add_subdirectory(${GMOCK_DIR} EXCLUDE_FROM_ALL) endif() endif() if (TARGET gmock)