summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/VS10Project/VsWinRTByDefault.cmake
diff options
context:
space:
mode:
authorPetr Polezhaev <petr.polezhaev@larian.com>2019-12-12 10:50:52 (GMT)
committerPetr Polezhaev <petr.polezhaev@larian.com>2019-12-16 12:00:44 (GMT)
commit7bcef355bfa25e8d9d2dbc015b04831a7cf8c5a9 (patch)
treed10ee4fcb11f59d5e8a972e95949522d16e2f8f5 /Tests/RunCMake/VS10Project/VsWinRTByDefault.cmake
parentb289544810e4417cff3e46228e3471457b0be0e4 (diff)
downloadCMake-7bcef355bfa25e8d9d2dbc015b04831a7cf8c5a9.zip
CMake-7bcef355bfa25e8d9d2dbc015b04831a7cf8c5a9.tar.gz
CMake-7bcef355bfa25e8d9d2dbc015b04831a7cf8c5a9.tar.bz2
Vs: Add test for VS_WINRT_BY_DEFAULT
Diffstat (limited to 'Tests/RunCMake/VS10Project/VsWinRTByDefault.cmake')
-rw-r--r--Tests/RunCMake/VS10Project/VsWinRTByDefault.cmake16
1 files changed, 16 insertions, 0 deletions
diff --git a/Tests/RunCMake/VS10Project/VsWinRTByDefault.cmake b/Tests/RunCMake/VS10Project/VsWinRTByDefault.cmake
new file mode 100644
index 0000000..139048b
--- /dev/null
+++ b/Tests/RunCMake/VS10Project/VsWinRTByDefault.cmake
@@ -0,0 +1,16 @@
+set(CMAKE_VS_WINRT_BY_DEFAULT true)
+
+enable_language(C)
+enable_language(CXX)
+
+add_library(noFlagOnlyC empty.c)
+add_library(noFlagMixedCAndCXX empty.c foo.cpp)
+add_library(noFlagOnlyCXX foo.cpp)
+
+add_library(flagOnlyC empty.c)
+add_library(flagMixedCAndCXX empty.c foo.cpp)
+add_library(flagOnlyCXX foo.cpp)
+
+target_compile_options(flagOnlyC PRIVATE /ZW)
+target_compile_options(flagMixedCAndCXX PRIVATE /ZW)
+target_compile_options(flagOnlyCXX PRIVATE /ZW)