Skip to content
Snippets Groups Projects
Commit ec418068 authored by Whitney Armstrong's avatar Whitney Armstrong
Browse files

Why prevent installing into /usr/local?!?!

!!!
parent 45ada8c0
No related merge requests found
......@@ -17,9 +17,9 @@ MARK_AS_ADVANCED( LIBRARY_OUTPUT_PATH )
# what happens when `make install` is invoked:
# set default install prefix to project root directory
# instead of the cmake default /usr/local
IF( CMAKE_INSTALL_PREFIX STREQUAL "/usr/local" )
SET( CMAKE_INSTALL_PREFIX "${PROJECT_SOURCE_DIR}" )
ENDIF()
#IF( CMAKE_INSTALL_PREFIX STREQUAL "/usr/local" )
# SET( CMAKE_INSTALL_PREFIX "${PROJECT_SOURCE_DIR}" )
#ENDIF()
# write this variable to cache
SET( CMAKE_INSTALL_PREFIX "${CMAKE_INSTALL_PREFIX}" CACHE PATH "Where to install ${PROJECT_NAME}" FORCE )
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment