[cmake-commits] andy committed Darwin.cmake 1.27 1.28

cmake-commits at cmake.org cmake-commits at cmake.org
Fri Mar 2 11:33:39 EST 2007


Update of /cvsroot/CMake/CMake/Modules/Platform
In directory public:/mounts/ram/cvs-serv11256/Modules/Platform

Modified Files:
	Darwin.cmake 
Log Message:
BUG: Propagate platform settings such as CMAKE_OSX_ARCHITECTURES to the try compile


Index: Darwin.cmake
===================================================================
RCS file: /cvsroot/CMake/CMake/Modules/Platform/Darwin.cmake,v
retrieving revision 1.27
retrieving revision 1.28
diff -u -d -r1.27 -r1.28
--- Darwin.cmake	6 Oct 2006 13:16:53 -0000	1.27
+++ Darwin.cmake	2 Mar 2007 16:33:37 -0000	1.28
@@ -97,3 +97,8 @@
 INCLUDE(Platform/UnixPaths)
 SET(CMAKE_SYSTEM_INCLUDE_PATH ${CMAKE_SYSTEM_INCLUDE_PATH} /sw/include)
 SET(CMAKE_SYSTEM_LIBRARY_PATH ${CMAKE_SYSTEM_LIBRARY_PATH} /sw/lib)
+
+IF(CMAKE_OSX_ARCHITECTURES)
+  SET(CMAKE_TRY_COMPILE_PLATFORM_OPTIONS "${CMAKE_TRY_COMPILE_PLATFORM_OPTIONS}
+    SET(CMAKE_OSX_ARCHITECTURES \"${CMAKE_OSX_ARCHITECTURES}\")")
+ENDIF(CMAKE_OSX_ARCHITECTURES)



More information about the Cmake-commits mailing list