diff options
author | Bill Hoffman <bill.hoffman@kitware.com> | 2008-10-14 15:42:45 (GMT) |
---|---|---|
committer | Bill Hoffman <bill.hoffman@kitware.com> | 2008-10-14 15:42:45 (GMT) |
commit | 9430c3f33591e1f9c4bb2d0d1b7fbd3486c3ff6e (patch) | |
tree | 3ec0de3b3db4240fa7b7755c3ae88181fa3aa594 /Modules | |
parent | 9b8d30081c66082dfc7df79ff1cc9b3348bb5308 (diff) | |
download | CMake-9430c3f33591e1f9c4bb2d0d1b7fbd3486c3ff6e.zip CMake-9430c3f33591e1f9c4bb2d0d1b7fbd3486c3ff6e.tar.gz CMake-9430c3f33591e1f9c4bb2d0d1b7fbd3486c3ff6e.tar.bz2 |
ENH: better error message for mis-configured nmake environment
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/Platform/Windows-cl.cmake | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/Modules/Platform/Windows-cl.cmake b/Modules/Platform/Windows-cl.cmake index 562b2b0..06169b0 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) +IF(NOT ENABLE_LANGUAGE_RC_CALLED AND NOT CMAKE_DO_TRY_COMPILE) + ENABLE_LANGUAGE(RC) +ENDIF(NOT ENABLE_LANGUAGE_RC_CALLED AND NOT CMAKE_DO_TRY_COMPILE) +SET(ENABLE_LANGUAGE_RC_CALLED TRUE) SET(CMAKE_COMPILE_RESOURCE "rc <FLAGS> /fo<OBJECT> <SOURCE>") # for nmake we need to compute some information about the compiler |