From c9f87df47ff7a24411ae59d2550d86989fecd7a9 Mon Sep 17 00:00:00 2001 From: Antony Riakiotakis Date: Thu, 13 Nov 2014 13:52:20 +0100 Subject: Correctly support non-portable case --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'CMakeLists.txt') diff --git a/CMakeLists.txt b/CMakeLists.txt index f11afab87a6..3459030101a 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -371,7 +371,7 @@ endif() # By default we want to install to the directory we are compiling our executables # unless specified otherwise, which we currently do not allow -IF(CMAKE_INSTALL_PREFIX_INITIALIZED_TO_DEFAULT) +IF(CMAKE_INSTALL_PREFIX_INITIALIZED_TO_DEFAULT AND WITH_INSTALL_PORTABLE) if(MSVC) set(CMAKE_INSTALL_PREFIX ${EXECUTABLE_OUTPUT_PATH}/\${BUILD_TYPE} CACHE PATH "default install path" FORCE ) elseif(APPLE) -- cgit v1.2.3