diff --git a/CMakeLists.txt b/CMakeLists.txt index abf58cd..6c785c6 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -152,7 +152,9 @@ endif() # Install (sudo make install) # --------------------------------------------------------- -set(CMAKE_INSTALL_PREFIX /usr/) +if(NOT CMAKE_INSTALL_PREFIX) + set(CMAKE_INSTALL_PREFIX /usr/) +endif(NOT CMAKE_INSTALL_PREFIX) # Check if it is a 64 bit system if(CMAKE_SIZEOF_VOID_P EQUAL 8 AND NOT LIB_SUFFIX)