From 2b21d8e16bcb58351c5546848d71b067244420b4 Mon Sep 17 00:00:00 2001 From: Bill Hoffman Date: Mon, 23 Jun 2008 13:37:58 -0400 Subject: ENH: make rc optional --- Modules/Platform/Windows-cl.cmake | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Modules/Platform/Windows-cl.cmake b/Modules/Platform/Windows-cl.cmake index 562b2b0..8bfdcd7 100644 --- a/Modules/Platform/Windows-cl.cmake +++ b/Modules/Platform/Windows-cl.cmake @@ -29,7 +29,10 @@ ENDIF(CMAKE_GENERATOR MATCHES "Visual Studio 9") # make sure to enable languages after setting configuration types -ENABLE_LANGUAGE(RC) +ENABLE_LANGUAGE(RC OPTIONAL) +IF(NOT CMAKE_RC_COMPILER_WORKS ) + MESSAGE(STATUS "Warning: RC not found, this build will not be able to compile resource files.") +ENDIF(NOT CMAKE_RC_COMPILER_WORKS ) SET(CMAKE_COMPILE_RESOURCE "rc /fo ") # for nmake we need to compute some information about the compiler -- cgit v0.12