summaryrefslogtreecommitdiffstats
path: root/Modules/Platform/Windows-cl.cmake
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2008-06-23 17:37:58 (GMT)
committerBill Hoffman <bill.hoffman@kitware.com>2008-06-23 17:37:58 (GMT)
commit2b21d8e16bcb58351c5546848d71b067244420b4 (patch)
tree2e2540d7506c42a759c5427ca376d1d7dfc16f4c /Modules/Platform/Windows-cl.cmake
parent8ef1cedbefe2aec394bcaea8eb8aeab7f06326e1 (diff)
downloadCMake-2b21d8e16bcb58351c5546848d71b067244420b4.zip
CMake-2b21d8e16bcb58351c5546848d71b067244420b4.tar.gz
CMake-2b21d8e16bcb58351c5546848d71b067244420b4.tar.bz2
ENH: make rc optional
Diffstat (limited to 'Modules/Platform/Windows-cl.cmake')
-rw-r--r--Modules/Platform/Windows-cl.cmake5
1 files changed, 4 insertions, 1 deletions
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 <FLAGS> /fo<OBJECT> <SOURCE>")
# for nmake we need to compute some information about the compiler