[CMake] ADD_COMPILE_TEST macro

Mathieu Malaterre mathieu.malaterre at gmail.com
Mon Feb 11 05:16:31 EST 2008


Hi there,

  I would like to know if anyone has written a ADD_COMPILE_TEST macro
for cmake. Basically I would like to check that some template
instantiation should not compile, while other should. I tried quickly
doing cmake -P + TRY_COMPILE but I am getting an error :

   Command TRY_COMPILE not scriptable

  Code can be found here:

https://gdcm.svn.sourceforge.net/svnroot/gdcm/Sandbox/CMakeModules/UseCompileTest.cmake

Thanks for suggestions,
-- 
Mathieu


More information about the CMake mailing list