[commit] r2086 - add includes and libraries from /usr/pkg if present

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[commit] r2086 - add includes and libraries from /usr/pkg if present

commits-3
 
Author: piumarta
Date: 2009-08-25 19:49:49 -0700 (Tue, 25 Aug 2009)
New Revision: 2086

Modified:
   trunk/platforms/unix/ChangeLog
   trunk/platforms/unix/vm/config.cmake
Log:
add includes and libraries from /usr/pkg if present

Modified: trunk/platforms/unix/ChangeLog
===================================================================
--- trunk/platforms/unix/ChangeLog 2009-08-26 02:47:42 UTC (rev 2085)
+++ trunk/platforms/unix/ChangeLog 2009-08-26 02:49:49 UTC (rev 2086)
@@ -1,5 +1,7 @@
 2009-08-25    <[hidden email]>
 
+ * vm/config.cmake: Add includes and libraries from /usr/pkg if present.
+
  * cmake/PluginInternal.cmake, cmake/PluginExternal.cmake: Add
  CMAKE_REQUIRED_INCLUDES to plugin INCLUDE_DIRECTORIES.
 

Modified: trunk/platforms/unix/vm/config.cmake
===================================================================
--- trunk/platforms/unix/vm/config.cmake 2009-08-26 02:47:42 UTC (rev 2085)
+++ trunk/platforms/unix/vm/config.cmake 2009-08-26 02:49:49 UTC (rev 2086)
@@ -15,6 +15,14 @@
 
 CONFIG_DEFINE (DARWIN)
 
+IF (EXISTS /usr/pkg/include)
+  LIST (APPEND CMAKE_REQUIRED_INCLUDES /usr/pkg/include)
+ENDIF (EXISTS /usr/pkg/include)
+
+IF (EXISTS /usr/pkg/lib)
+  LIST (APPEND CMAKE_REQUIRED_LIBRARIES -L/usr/pkg/lib)
+ENDIF (EXISTS /usr/pkg/lib)
+
 SET (interp interp)
 
 INCLUDE (TestBigEndian)