summaryrefslogtreecommitdiff
path: root/Tests/MFC
diff options
context:
space:
mode:
authorAndrey Starodubtsev <andrey.starodubtsev@gmail.com>2020-09-27 22:41:25 +0300
committerBrad King <brad.king@kitware.com>2020-09-30 12:24:13 -0400
commitc1f1eaf7a4e4f1dfaba9a1fb1738aad48296bcda (patch)
tree58dd23e2f5ad16dd68821f700ceff644b353adbd /Tests/MFC
parent558ce94016f898aee596acc570e97a149f1b3dbf (diff)
downloadcmake-c1f1eaf7a4e4f1dfaba9a1fb1738aad48296bcda.tar.gz
VS: Teach CMAKE_MFC_FLAG to support generator expressions
Diffstat (limited to 'Tests/MFC')
-rw-r--r--Tests/MFC/CMakeLists.txt.in3
1 files changed, 3 insertions, 0 deletions
diff --git a/Tests/MFC/CMakeLists.txt.in b/Tests/MFC/CMakeLists.txt.in
index bf98e918ce..3632e03e21 100644
--- a/Tests/MFC/CMakeLists.txt.in
+++ b/Tests/MFC/CMakeLists.txt.in
@@ -65,3 +65,6 @@ if("${CMAKE_MFC_FLAG}" STREQUAL "2")
set(CMAKE_INSTALL_MFC_LIBRARIES ON)
include(InstallRequiredSystemLibraries)
endif()
+
+# Encode the value inside a generator expression to test evaluation.
+set(CMAKE_MFC_FLAG "$<1:${CMAKE_MFC_FLAG}>")