Commit a711fc81 authored by Philipp Schäfer's avatar Philipp Schäfer
Browse files

CMake: Now sets default install path

parent dca1413b
......@@ -6,6 +6,12 @@ project (
LANGUAGES CXX C
)
#Set the install root folder if not specified by the user
if(CMAKE_INSTALL_PREFIX_INITIALIZED_TO_DEFAULT)
set(CMAKE_INSTALL_PREFIX ${CMAKE_CURRENT_BINARY_DIR}/dist CACHE PATH "Install root directory" FORCE)
set(CMAKE_INSTALL_PREFIX_INITIALIZED_TO_DEFAULT OFF)
endif(CMAKE_INSTALL_PREFIX_INITIALIZED_TO_DEFAULT)
set (CMAKE_DEBUG_POSTFIX "-d")
set (CMAKE_EXPORT_COMPILE_COMMANDS ON)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment