aboutsummaryrefslogtreecommitdiff
path: root/ports/atlmfc
diff options
context:
space:
mode:
Diffstat (limited to 'ports/atlmfc')
-rw-r--r--ports/atlmfc/CONTROL3
-rw-r--r--ports/atlmfc/portfile.cmake10
2 files changed, 13 insertions, 0 deletions
diff --git a/ports/atlmfc/CONTROL b/ports/atlmfc/CONTROL
new file mode 100644
index 000000000..aff5c97aa
--- /dev/null
+++ b/ports/atlmfc/CONTROL
@@ -0,0 +1,3 @@
+Source: atlmfc
+Version: 0
+Description: a stub package that ensures VS has ATL/MFC installed.
diff --git a/ports/atlmfc/portfile.cmake b/ports/atlmfc/portfile.cmake
new file mode 100644
index 000000000..d11235dcc
--- /dev/null
+++ b/ports/atlmfc/portfile.cmake
@@ -0,0 +1,10 @@
+find_path(AFXRES_H
+ NAMES afxres.h
+ PATHS $ENV{INCLUDE}
+)
+
+if(NOT AFXRES_H)
+ message(FATAL_ERROR "Unable to locate 'afxres.h'. Ensure you have installed the ATL/MFC component of Visual Studio.")
+endif()
+
+SET(VCPKG_POLICY_EMPTY_PACKAGE enabled)