On 2. Jul, 2010, at 6:02 , Tron Thomas wrote:

> I currently have a project that I configure using CMake 2.8, and because of a 
> problem with Xcode on the Macintosh I need to add some checks and adjust 
> things in the CMake scripts to change the build configuration when Xcode is 
> the intended build tool.  I would like to restrict these changes specifically 
> to Xcode so that when a different tools like make files are used the special 
> changes are not needed.
> 
> How could someone target specific build configuration settings to a 
> development tool like Xcode?


if(CMAKE_GENERATOR STREQUAL Xcode)
  ...
endif()


HTH

Michael

_______________________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake

Reply via email to