diff options
author | Bill Hoffman <bill.hoffman@kitware.com> | 2008-06-16 19:19:44 (GMT) |
---|---|---|
committer | Bill Hoffman <bill.hoffman@kitware.com> | 2008-06-16 19:19:44 (GMT) |
commit | d07a4675d224d155b324fed5a6c43569835b5294 (patch) | |
tree | 2644be79b4190659e61d1f4a295837c260dad3bd /Modules/FindMatlab.cmake | |
parent | 6c97713a271ddd3de95a9cc130bbf46906c9a172 (diff) | |
download | CMake-d07a4675d224d155b324fed5a6c43569835b5294.zip CMake-d07a4675d224d155b324fed5a6c43569835b5294.tar.gz CMake-d07a4675d224d155b324fed5a6c43569835b5294.tar.bz2 |
ENH: fix find module stuff for test
Diffstat (limited to 'Modules/FindMatlab.cmake')
-rw-r--r-- | Modules/FindMatlab.cmake | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Modules/FindMatlab.cmake b/Modules/FindMatlab.cmake index 17e6f36..37619c2 100644 --- a/Modules/FindMatlab.cmake +++ b/Modules/FindMatlab.cmake @@ -21,7 +21,9 @@ IF(WIN32) # Same here, there are also: bcc50 and bcc51 directories SET(MATLAB_ROOT "[HKEY_LOCAL_MACHINE\\SOFTWARE\\MathWorks\\MATLAB\\7.0;MATLABROOT]/extern/lib/win32/microsoft/bcc54") ELSE(${CMAKE_GENERATOR} MATCHES "Borland") - MESSAGE(FATAL_ERROR "Generator not compatible: ${CMAKE_GENERATOR}") + IF(MATLAB_FIND_REQUIRED) + MESSAGE(FATAL_ERROR "Generator not compatible: ${CMAKE_GENERATOR}") + ENDIF(MATLAB_FIND_REQUIRED) ENDIF(${CMAKE_GENERATOR} MATCHES "Borland") ENDIF(${CMAKE_GENERATOR} MATCHES "Visual Studio 7") ENDIF(${CMAKE_GENERATOR} MATCHES "Visual Studio 6") |