summaryrefslogtreecommitdiffstats
path: root/Tests/MFC/try_compile
diff options
context:
space:
mode:
authorDavid Cole <david.cole@kitware.com>2011-12-16 18:49:27 (GMT)
committerDavid Cole <david.cole@kitware.com>2011-12-16 21:30:10 (GMT)
commit0e598b7bcd2da655b23e02bef4e56e620c6286c5 (patch)
treef7928cccb9c11bafa15ad4d53970e8cdb28aabc5 /Tests/MFC/try_compile
parentf7be6d616f06c08e3b955df5ef2d8c4b18243334 (diff)
downloadCMake-0e598b7bcd2da655b23e02bef4e56e620c6286c5.zip
CMake-0e598b7bcd2da655b23e02bef4e56e620c6286c5.tar.gz
CMake-0e598b7bcd2da655b23e02bef4e56e620c6286c5.tar.bz2
Tests: Only really run MFC test if we can build MFC apps (#11213)
Avoid problems on "undetected" VS Express build environments.
Diffstat (limited to 'Tests/MFC/try_compile')
-rw-r--r--Tests/MFC/try_compile/CMakeLists.txt15
1 files changed, 15 insertions, 0 deletions
diff --git a/Tests/MFC/try_compile/CMakeLists.txt b/Tests/MFC/try_compile/CMakeLists.txt
new file mode 100644
index 0000000..8e5d746
--- /dev/null
+++ b/Tests/MFC/try_compile/CMakeLists.txt
@@ -0,0 +1,15 @@
+cmake_minimum_required(VERSION 2.8)
+project(try_compile_mfc)
+
+set(files
+ stdafx.cpp
+ stdafx.h
+)
+
+set(CMAKE_MFC_FLAG "2")
+
+# VS generators add this automatically based on the CMAKE_MFC_FLAG value,
+# but generators matching "Make" require:
+add_definitions(-D_AFXDLL)
+
+add_executable(simplest_possible_mfc_exe WIN32 ${files})