[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[certi-cvs] applications/HLA_Tutorial CMakeLists.txt
From: |
certi-cvs |
Subject: |
[certi-cvs] applications/HLA_Tutorial CMakeLists.txt |
Date: |
Sun, 21 Sep 2008 10:44:52 +0000 |
CVSROOT: /sources/certi
Module name: applications
Changes by: Eric NOULARD <erk> 08/09/21 10:44:52
Modified files:
HLA_Tutorial : CMakeLists.txt
Log message:
Use more convenient CMake module path update
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/applications/HLA_Tutorial/CMakeLists.txt?cvsroot=certi&r1=1.9&r2=1.10
Patches:
Index: CMakeLists.txt
===================================================================
RCS file: /sources/certi/applications/HLA_Tutorial/CMakeLists.txt,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -b -r1.9 -r1.10
--- CMakeLists.txt 3 Jul 2008 08:50:04 -0000 1.9
+++ CMakeLists.txt 21 Sep 2008 10:44:52 -0000 1.10
@@ -14,7 +14,16 @@
# You should set CERTI_HOME env var to appropriate value
# or put here the full path to the directory
# containing FindCERTI.cmake
-SET(CMAKE_MODULE_PATH $ENV{CERTI_HOME}/share/scripts)
+# Use CERTI_HOME env var if it is defined
+IF ("$ENV{CERTI_HOME}" STRGREATER "")
+ FILE(TO_CMAKE_PATH "$ENV{CERTI_HOME}" CERTI_HOME_TEMP)
+ SET(CERTI_HOME ${CERTI_HOME_TEMP} CACHE PATH "The CERTI install directory")
+ LIST(APPEND CMAKE_MODULE_PATH "${CERTI_HOME}/share/scripts")
+# Or try to use CERTI possible installed at the same INSTALL_PREFIX
+ELSE ("$ENV{CERTI_HOME}" STRGREATER "")
+ LIST(APPEND CMAKE_MODULE_PATH "${CMAKE_INSTALL_PREFIX}/share/scripts")
+ENDIF ("$ENV{CERTI_HOME}" STRGREATER "")
+#SET(CMAKE_MODULE_PATH $ENV{CERTI_HOME}/share/scripts)
# You should uncomment the following line
# if you want VERBOSE build
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [certi-cvs] applications/HLA_Tutorial CMakeLists.txt,
certi-cvs <=