Correctly support non-portable case

This commit is contained in:
Antony Riakiotakis
2014-11-13 13:52:20 +01:00
parent 72aa0ebe6a
commit c9f87df47f

View File

@@ -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)