From bb0ba31fe018a965009b0dab84ac52699942cfaf Mon Sep 17 00:00:00 2001 From: James Turner Date: Mon, 16 Apr 2018 15:23:54 +0100 Subject: [PATCH] Fix MSVC fgrcc execution --- CMakeModules/SetupFGFSEmbeddedResources.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeModules/SetupFGFSEmbeddedResources.cmake b/CMakeModules/SetupFGFSEmbeddedResources.cmake index c06887a35..d302033dc 100644 --- a/CMakeModules/SetupFGFSEmbeddedResources.cmake +++ b/CMakeModules/SetupFGFSEmbeddedResources.cmake @@ -12,7 +12,7 @@ function(setup_fgfs_embedded_resources) # On Windows, make sure fgrcc can be run (it needs third-party libraries) if(MSVC) if(MSVC_3RDPARTY_ROOT AND MSVC_3RDPARTY_DIR) - set(CMAKE_MSVCIDE_RUN_PATH ${MSVC_3RDPARTY_ROOT}/${MSVC_3RDPARTY_DIR}/bin) + set(CMAKE_MSVCIDE_RUN_PATH ${MSVC_3RDPARTY_ROOT}/${MSVC_3RDPARTY_DIR}/bin PARENT_SCOPE) else() message(FATAL_ERROR "Either MSVC_3RDPARTY_ROOT or MSVC_3RDPARTY_DIR is empty or unset")