From bfabcd446e4a3f66cfa70db23cf7eefa9f84f763 Mon Sep 17 00:00:00 2001 From: boeschf <48126478+boeschf@users.noreply.github.com> Date: Wed, 19 Oct 2022 18:40:28 +0200 Subject: [PATCH] fix external project when using ninja (#2008) Fix clash betwenn Ninja build and CMake external_project --- ext/CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/ext/CMakeLists.txt b/ext/CMakeLists.txt index 60df2d3b..78d6394c 100644 --- a/ext/CMakeLists.txt +++ b/ext/CMakeLists.txt @@ -60,6 +60,7 @@ function(add_external_cmake_project) # Add dummy DOWNLOAD_COMMAND to stop ExternalProject_Add terminating CMake if the # git submodule had not been udpated. DOWNLOAD_COMMAND "${CMAKE_COMMAND}" -E echo "Warning: ${EP_SOURCE_DIR} empty or missing." + BUILD_BYPRODUCTS "${EP_INTERFACE_LIB_NAME}" SOURCE_DIR "${EP_SOURCE_DIR}" CMAKE_ARGS "${EP_ALL_CMAKE_ARGS}" INSTALL_DIR "${EP_INSTALL_DIR}" -- GitLab