Made /usr/local/gromacs default installation path in cmake too
authorErik Lindahl <lindahl@csbm02.cbr.su.se>
Thu, 26 Aug 2010 08:28:52 +0000 (10:28 +0200)
committerErik Lindahl <lindahl@csbm02.cbr.su.se>
Thu, 26 Aug 2010 08:28:52 +0000 (10:28 +0200)
CMakeLists.txt

index 96e4f54f1398fd7cb451ef73073dcb7dfc3eb892..888901a2b727544f849201af5fc2fbb8eb2dfbf9 100644 (file)
@@ -11,6 +11,10 @@ set(SOVERSION 6)
 # Cmake modules/macros are in a subdirectory to keep this file cleaner
 set(CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/cmake)
 
+if(NOT CMAKE_INSTALL_PREFIX)
+    set(CMAKE_INSTALL_PREFIX "/usr/local/gromacs" CACHE STRING "" FORCE)
+endif()
+
 if(NOT CMAKE_BUILD_TYPE)
     set(CMAKE_BUILD_TYPE "Release" CACHE STRING "Choose the type of build, options are: Debug Release RelWithDebInfo MinSizeRel." FORCE)
 endif(NOT CMAKE_BUILD_TYPE)