From 75b5acbbff5b274f3fb713936f89604591d7696f Mon Sep 17 00:00:00 2001 From: "Addisu Z. Taddese" Date: Fri, 29 Mar 2024 11:16:47 -0500 Subject: [PATCH] Fix how `ign` compatibility files are copied in windows Instead of relying on the installed `gz` cmake file, we copy the one from the source directory. This avoids relying on an absolute path formed using `CMAKE_INSTALL_PREFIX`, which doesn't work well when using `CMAKE_STAGING_PREFIX`. Signed-off-by: Addisu Z. Taddese --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 5047d616..ca16f88b 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -185,7 +185,7 @@ foreach(cmake_file ${tick_tocked_cmake_files}) if (WIN32) # Windows requires copy instead of symlink install(CODE "execute_process(COMMAND ${CMAKE_COMMAND} -E copy \ - ${CMAKE_INSTALL_PREFIX}\/${gz_modules_install_dir}\/${cmake_file} \ + ${PROJECT_SOURCE_DIR}\/cmake/${cmake_file} \ ${PROJECT_BINARY_DIR}\/cmake/${ign_cmake_file})") else() install(CODE "execute_process(COMMAND ${CMAKE_COMMAND} -E create_symlink \