Revision: 44638
          http://brlcad.svn.sourceforge.net/brlcad/?rev=44638&view=rev
Author:   starseeker
Date:     2011-05-19 22:19:55 +0000 (Thu, 19 May 2011)

Log Message:
-----------
Maybe someday this will work, or I'll figure out why I'm doing it wrong - 
CMAKE_SYSTEM_IGNORE_PATH should be ideal for excluding the install dir from 
Find results, but it doesn't seem to.

Modified Paths:
--------------
    brlcad/trunk/CMakeLists.txt

Modified: brlcad/trunk/CMakeLists.txt
===================================================================
--- brlcad/trunk/CMakeLists.txt 2011-05-19 22:07:24 UTC (rev 44637)
+++ brlcad/trunk/CMakeLists.txt 2011-05-19 22:19:55 UTC (rev 44638)
@@ -156,7 +156,28 @@
        PATH_REMOVE(CMAKE_SYSTEM_LIBRARY_PATH BRLCAD_PREFIX)
        PATH_REMOVE(CMAKE_SYSTEM_PROGRAM_PATH BRLCAD_PREFIX)
 ENDIF(BRLCAD_PREFIX)
-  
+
+IF(0)
+       # ignore would be better, but it doesn't seem to work 
+       IF(CMAKE_INSTALL_PREFIX)
+               IF(NOT ${CMAKE_INSTALL_PREFIX} STREQUAL "/usr" AND NOT 
${CMAKE_INSTALL_PREFIX} STREQUAL "/usr/local")
+                       get_filename_component(PATH_NORMALIZED 
${CMAKE_INSTALL_PREFIX}/lib ABSOLUTE)
+                       SET(CMAKE_SYSTEM_IGNORE_PATH 
${PATH_NORMALIZED};${CMAKE_SYSTEM_IGNORE_PATH} CACHE STRING "Added 
CMAKE_INSTALL_PREFIX to avoid inconsistent search results")
+               ENDIF(NOT ${CMAKE_INSTALL_PREFIX} STREQUAL "/usr" AND NOT 
${CMAKE_INSTALL_PREFIX} STREQUAL "/usr/local")
+       ENDIF(CMAKE_INSTALL_PREFIX)
+       IF(BRLCAD_PREFIX)
+               IF(NOT ${BRLCAD_PREFIX} STREQUAL "/usr" AND NOT 
${BRLCAD_PREFIX} STREQUAL "/usr/local")
+                       get_filename_component(PATH_NORMALIZED 
${BRLCAD_PREFIX}/lib ABSOLUTE)
+                       SET(CMAKE_SYSTEM_IGNORE_PATH 
${PATH_NORMALIZED};${CMAKE_SYSTEM_IGNORE_PATH} CACHE STRING "Added 
CMAKE_INSTALL_PREFIX to avoid inconsistent search results")
+               ENDIF(NOT ${BRLCAD_PREFIX} STREQUAL "/usr" AND NOT 
${BRLCAD_PREFIX} STREQUAL "/usr/local")
+       ENDIF(BRLCAD_PREFIX)
+       IF(CMAKE_SYSTEM_IGNORE_PATH)
+               LIST(REMOVE_DUPLICATES CMAKE_SYSTEM_IGNORE_PATH)
+       ENDIF(CMAKE_SYSTEM_IGNORE_PATH)
+       MESSAGE("CMAKE_SYSTEM_IGNORE_PATH: ${CMAKE_SYSTEM_IGNORE_PATH}")
+ENDIF(0)
+
+
 #---------------------------------------------------------------------
 # By default (as of version 2.8.2) CMake does not provide access to 
 # global lists of executable and library targets.  This is useful


This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.

------------------------------------------------------------------------------
What Every C/C++ and Fortran developer Should Know!
Read this article and learn how Intel has extended the reach of its 
next-generation tools to help Windows* and Linux* C/C++ and Fortran 
developers boost performance applications - including clusters. 
http://p.sf.net/sfu/intel-dev2devmay
_______________________________________________
BRL-CAD Source Commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-commits

Reply via email to