]> git.mxchange.org Git - simgear.git/blobdiff - CMakeLists.txt
Look for MSVC 3rdparty deps differently.
[simgear.git] / CMakeLists.txt
index 5ae77c47981412fec329e57e81b9748c66bd5ab9..7c2c8ed606e6f0fc66a2b28be2efdd27c09ea305 100644 (file)
@@ -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)