diff --git a/desktop/CMakeLists.txt b/desktop/CMakeLists.txt index 3496e0aa70..93455beec4 100644 --- a/desktop/CMakeLists.txt +++ b/desktop/CMakeLists.txt @@ -16,7 +16,11 @@ set(CMAKE_OSX_DEPLOYMENT_TARGET "10.9") message(STATUS "EXTERNAL_MODULES_DIR: ${EXTERNAL_MODULES_DIR}") string(REGEX MATCH "BUILD_FOR_BUNDLE" BUILD_FOR_BUNDLE "${CMAKE_CXX_FLAGS}") -set(ENVFILE "/.env") +if(${BUILD_FOR_BUNDLE} MATCHES "BUILD_FOR_BUNDLE") + set(ENVFILE "/.env") +else() + set(ENVFILE "/../../.env") +endif() foreach(external_module ${EXTERNAL_MODULES_DIR}) message(STATUS "external_module: ${external_module}")