[MOAB-dev] r1317 - MOAB/trunk/cmake

dcthomp at mcs.anl.gov dcthomp at mcs.anl.gov
Sat Oct 20 00:40:30 CDT 2007


Author: dcthomp
Date: 2007-10-20 00:40:29 -0500 (Sat, 20 Oct 2007)
New Revision: 1317

Modified:
   MOAB/trunk/cmake/FindCGM.cmake
Log:
COMP: Given the CGM toplevel build/source, properly compute
      the include_directories required...


Modified: MOAB/trunk/cmake/FindCGM.cmake
===================================================================
--- MOAB/trunk/cmake/FindCGM.cmake	2007-10-20 00:02:19 UTC (rev 1316)
+++ MOAB/trunk/cmake/FindCGM.cmake	2007-10-20 05:40:29 UTC (rev 1317)
@@ -79,9 +79,16 @@
 endif ( NOT CGM_LIBRARIES )
 
 if ( CGM_SOURCE_DIR AND CGM_BINARY_DIR AND NOT CGM_INCLUDE_DIRECTORIES )
+  set( cubit_geom_SOURCE_DIR "${CGM_SOURCE_DIR}/geom" )
+  set( cubit_geom_BINARY_DIR "${CGM_BINARY_DIR}/geom" )
+  set( cubit_util_SOURCE_DIR "${CGM_SOURCE_DIR}/util" )
+  set( cubit_util_BINARY_DIR "${CGM_BINARY_DIR}/util" )
+  set( cgma_init_SOURCE_DIR "${CGM_SOURCE_DIR}/init" )
+  set( cgma_init_BINARY_DIR "${CGM_BINARY_DIR}/init" )
   set( CGM_INCLUDE_DIRECTORIES
-    "${CGM_SOURCE_DIR}/util"
-    "${CGM_SOURCE_DIR}/geom"
+    "${cubit_util_SOURCE_DIR}"
+    "${cubit_util_BINARY_DIR}"
+    "${cubit_geom_SOURCE_DIR}"
     "${cubit_geom_SOURCE_DIR}/ACIS"
     "${cubit_geom_SOURCE_DIR}/Cholla"
     "${cubit_geom_SOURCE_DIR}/facet"
@@ -90,8 +97,9 @@
     "${cubit_geom_SOURCE_DIR}/parallel"
     "${cubit_geom_SOURCE_DIR}/SolidWorks"
     "${cubit_geom_SOURCE_DIR}/virtual"
-    "${CGM_BINARY_DIR}/util"
-    "${CGM_BINARY_DIR}/geom"
+    "${cubit_geom_BINARY_DIR}"
+    "${cgma_init_SOURCE_DIR}"
+    "${cgma_init_BINARY_DIR}"
     CACHE PATH "Paths to util/CubitUtilConfigure.h.in, util/CubitUtilConfigure.h, geom/CubitGeomConfigure.h.in, AND geom/CubitGeomConfigure.h files." FORCE
   )
 endif ( CGM_SOURCE_DIR AND CGM_BINARY_DIR AND NOT CGM_INCLUDE_DIRECTORIES )




More information about the moab-dev mailing list