← Back to team overview

yade-dev team mailing list archive

[Branch ~yade-dev/yade/trunk] Rev 2769: INSTALL_PREFIX option is added to CMakeLists.txt

 

------------------------------------------------------------
revno: 2769
committer: Anton Gladky <gladky.anton@xxxxxxxxx>
branch nick: yade
timestamp: Mon 2011-02-28 08:55:17 +0100
message:
  INSTALL_PREFIX option is added to CMakeLists.txt
modified:
  CMakeLists.txt


--
lp:yade
https://code.launchpad.net/~yade-dev/yade/trunk

Your team Yade developers is subscribed to branch lp:yade.
To unsubscribe from this branch go to https://code.launchpad.net/~yade-dev/yade/trunk/+edit-subscription
=== modified file 'CMakeLists.txt'
--- CMakeLists.txt	2011-01-31 19:09:24 +0000
+++ CMakeLists.txt	2011-02-28 07:55:17 +0000
@@ -49,7 +49,14 @@
 	
 
 #set(CMAKE_VERBOSE_MAKEFILE 1)
-set(CMAKE_INSTALL_PREFIX /usr/local)
+IF (NOT INSTALL_PREFIX)
+ SET(CMAKE_INSTALL_PREFIX "/usr/local")
+ MESSAGE("Yade will be installed to default path ${CMAKE_INSTALL_PREFIX}, if you want to override it use -DINSTALL_PREFIX option.")
+ELSE (NOT INSTALL_PREFIX)
+	SET(CMAKE_INSTALL_PREFIX ${INSTALL_PREFIX})
+	MESSAGE("Yade will be installed to ${CMAKE_INSTALL_PREFIX}")
+ENDIF (NOT CMAKE_INSTALL_PREFIX)
+
 SET(YADE_LIB_PATH ${CMAKE_INSTALL_PREFIX}/lib/yade-${SUFFIX})
 SET(YADE_EXEC_PATH ${CMAKE_INSTALL_PREFIX}/bin)
 SET(YADE_PY_PATH ${YADE_LIB_PATH}/py)