On 9/11/2012 1:48 PM, Nico Schlömer wrote:
IF(${CMAKE_C_COMPILER} NOT STREQUAL ${Foobar_C_COMPILER})

?

message(FATAL_ERROR "your compilers are incompatible. Re-run cmake on this project and set the environment variables CC and CXX to ... so that they match the ones used by package foobar")

-Bill


--
Bill Hoffman
Kitware, Inc.
28 Corporate Drive
Clifton Park, NY 12065
[email protected]
http://www.kitware.com
518 881-4905 (Direct)
518 371-3971 x105
Fax (518) 371-4573
--

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