Skip to content

Commit

Permalink
fixed hard coded cmake install prefix
Browse files Browse the repository at this point in the history
the CMAKE_INSTALL_PREFIX was hardoced, this
fix allows the user change the install prefix.

Fixes #34
  • Loading branch information
acki-m committed Jan 22, 2017
1 parent 47e5c11 commit 2f43e40
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion CMakeLists.txt
Expand Up @@ -87,4 +87,6 @@ if (BUILD_DOCUMENTATION)
endif()

# here we specify the installation directory
set(CMAKE_INSTALL_PREFIX ${RTTR_INSTALL_DIR} CACHE PATH "RTTR install prefix" FORCE)
if(CMAKE_INSTALL_PREFIX_INITIALIZED_TO_DEFAULT)
set(CMAKE_INSTALL_PREFIX ${RTTR_INSTALL_DIR} CACHE PATH "RTTR install prefix" FORCE)
endif()

0 comments on commit 2f43e40

Please sign in to comment.