From: James Turner Date: Sun, 3 Mar 2013 16:06:51 +0000 (+0000) Subject: Look for MSVC 3rdparty deps differently. X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=67efc1f68f927613efa06c93fd87fb4158d51b05;p=simgear.git Look for MSVC 3rdparty deps differently. Check for the 3rdparty dir in the parent of build dir, not the parent of the source dir. For the recommended build layout, this is the same location, but for super-builds using fgmeta it's not (and the source tree should not be touched). If this causes anyone issues, please let me know, since it's possible more flexibility is needed to set the path explicitly. --- diff --git a/CMakeLists.txt b/CMakeLists.txt index 5ae77c47..7c2c8ed6 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -114,7 +114,7 @@ option(ENABLE_TESTS "Set to OFF to disable building SimGear's test applicati option(ENABLE_SOUND "Set to OFF to disable building SimGear's sound support" ON) if (MSVC) - GET_FILENAME_COMPONENT(PARENT_DIR ${PROJECT_SOURCE_DIR} PATH) + GET_FILENAME_COMPONENT(PARENT_DIR ${PROJECT_BINARY_DIR} PATH) if (CMAKE_CL_64) SET(TEST_3RDPARTY_DIR "${PARENT_DIR}/3rdparty.x64") else (CMAKE_CL_64)