summaryrefslogtreecommitdiffstats
path: root/Tests/MFC
diff options
context:
space:
mode:
authorAndrey Starodubtsev <andrey.starodubtsev@gmail.com>2020-09-27 19:41:25 (GMT)
committerBrad King <brad.king@kitware.com>2020-09-30 16:24:13 (GMT)
commitc1f1eaf7a4e4f1dfaba9a1fb1738aad48296bcda (patch)
tree58dd23e2f5ad16dd68821f700ceff644b353adbd /Tests/MFC
parent558ce94016f898aee596acc570e97a149f1b3dbf (diff)
downloadCMake-c1f1eaf7a4e4f1dfaba9a1fb1738aad48296bcda.zip
CMake-c1f1eaf7a4e4f1dfaba9a1fb1738aad48296bcda.tar.gz
CMake-c1f1eaf7a4e4f1dfaba9a1fb1738aad48296bcda.tar.bz2
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 bf98e91..3632e03 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}>")