diff options
author | Brad King <brad.king@kitware.com> | 2017-07-11 11:39:11 (GMT) |
---|---|---|
committer | Kitware Robot <kwrobot@kitware.com> | 2017-07-11 11:39:15 (GMT) |
commit | 79e72f4b7c18cdb758e945daff0f9d201625c8f6 (patch) | |
tree | 0bd5e4d2b8cbfc39341255ee022b22f4bc23c844 /Tests | |
parent | de72d5dda6909093eb3fb6f8c0d53633e5bd9fdf (diff) | |
parent | 6b2bf5756bd01a955606f1963ad44bfde21f173f (diff) | |
download | CMake-79e72f4b7c18cdb758e945daff0f9d201625c8f6.zip CMake-79e72f4b7c18cdb758e945daff0f9d201625c8f6.tar.gz CMake-79e72f4b7c18cdb758e945daff0f9d201625c8f6.tar.bz2 |
Merge topic 'FindMFC-try-static'
6b2bf575 FindMFC: Check for static MFC variant
Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !1034
Diffstat (limited to 'Tests')
-rw-r--r-- | Tests/MFC/CMakeLists.txt.in | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Tests/MFC/CMakeLists.txt.in b/Tests/MFC/CMakeLists.txt.in index e6bfabd..bf98e91 100644 --- a/Tests/MFC/CMakeLists.txt.in +++ b/Tests/MFC/CMakeLists.txt.in @@ -45,6 +45,11 @@ set(files set(CMAKE_MFC_FLAG "@CMAKE_MFC_FLAG_VALUE@") +FIND_PACKAGE(MFC) +IF (NOT MFC_FOUND) + MESSAGE(FATAL_ERROR "MFC Could not be found during the MFC test") +ENDIF() + if("${CMAKE_MFC_FLAG}" STREQUAL "1") msvc_link_to_static_crt() else() |