[CMake] recommended way to test for msvc/cl ?

Jan Woetzel jw at mip.informatik.uni-kiel.de
Mon Jan 30 03:45:33 EST 2006


Alexander Neundorf wrote:

>what's the recommended way to test in a CMakeLists.txt, whether the 
>current compiler is msvc/cl ?
>  
>
You can test for msvc "projects/solution" (in contrast to Win32 nmake 
makefiles) by:

IF    (CMAKE_BUILD_TOOL MATCHES "(msdev|devenv)")

Jan.

-- 

  Dipl.-Ing. Jan Woetzel
--------------------------------------------------
  University of Kiel
  Institute of Computer Science and Applied Mathematics
  Hermann-Rodewald-Str. 3 [room 310]
  24098 Kiel/Germany
--------------------------------------------------
  Phone +49-431-880-4477
  Fax   +49-431-880-4054
  Mob.  +49-179-2937346
--------------------------------------------------
  Url   www.mip.informatik.uni-kiel.de/~jw
  Email jw at mip.informatik.uni-kiel.de



More information about the CMake mailing list