aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/atlmfc
diff options
context:
space:
mode:
Diffstat (limited to 'vcpkg/ports/atlmfc')
-rw-r--r--vcpkg/ports/atlmfc/portfile.cmake10
-rw-r--r--vcpkg/ports/atlmfc/vcpkg.json10
2 files changed, 20 insertions, 0 deletions
diff --git a/vcpkg/ports/atlmfc/portfile.cmake b/vcpkg/ports/atlmfc/portfile.cmake
new file mode 100644
index 0000000..d11235d
--- /dev/null
+++ b/vcpkg/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)
diff --git a/vcpkg/ports/atlmfc/vcpkg.json b/vcpkg/ports/atlmfc/vcpkg.json
new file mode 100644
index 0000000..40f1377
--- /dev/null
+++ b/vcpkg/ports/atlmfc/vcpkg.json
@@ -0,0 +1,10 @@
+{
+ "name": "atlmfc",
+ "version": "0",
+ "port-version": 3,
+ "description": "A stub package that ensures Visual Studio has ATL/MFC installed.",
+ "supports": "windows",
+ "dependencies": [
+ "atl"
+ ]
+}