[CMake] Detecting Xcode in CMake scripts

Michael Wild themiwi at gmail.com
Fri Jul 2 01:41:19 EDT 2010


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



More information about the CMake mailing list