certi-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[certi-cvs] applications/HLA_TestsSuite CMakeLists.txt


From: certi-cvs
Subject: [certi-cvs] applications/HLA_TestsSuite CMakeLists.txt
Date: Thu, 26 Jun 2008 06:17:40 +0000

CVSROOT:        /sources/certi
Module name:    applications
Changes by:     Eric NOULARD <erk>      08/06/26 06:17:40

Modified files:
        HLA_TestsSuite : CMakeLists.txt 

Log message:
        Try to find CERTI using CMAKE_INSTALL_PREFIX if CERTI_HOME
        env var is not set

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/applications/HLA_TestsSuite/CMakeLists.txt?cvsroot=certi&r1=1.14&r2=1.15

Patches:
Index: CMakeLists.txt
===================================================================
RCS file: /sources/certi/applications/HLA_TestsSuite/CMakeLists.txt,v
retrieving revision 1.14
retrieving revision 1.15
diff -u -b -r1.14 -r1.15
--- CMakeLists.txt      19 Jun 2008 11:11:54 -0000      1.14
+++ CMakeLists.txt      26 Jun 2008 06:17:40 -0000      1.15
@@ -19,12 +19,22 @@
 CMAKE_MINIMUM_REQUIRED(VERSION 2.4.4)
 
 # Use CERTI specific CMake modules first
-# You should set CERTI_HOME env var to appropriate value
-# or put here the full path to the directory
+
+# 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 "")
+
+# Or you can append here the full path to the directory
 # containing FindCERTI.cmake
-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")
+# LIST(APPEND CMAKE_MODULE_PATH "/your/own/path")
+
+# HLA_TestsSuite comes with its own set of CMake macros too
 LIST(APPEND CMAKE_MODULE_PATH "${HLA_TestsSuite_SOURCE_DIR}")
 
 # You should uncomment the following line




reply via email to

[Prev in Thread] Current Thread [Next in Thread]