summaryrefslogtreecommitdiffstats
path: root/Modules/Platform/WindowsKernelModeDriver-Initialize.cmake
diff options
context:
space:
mode:
authorKyle Edwards <kyle.edwards@kitware.com>2023-03-13 20:54:37 (GMT)
committerKyle Edwards <kyle.edwards@kitware.com>2023-07-17 20:54:10 (GMT)
commitb01f5eb079ad2cb2ac4a114132f6bd12daa712d9 (patch)
tree7474b0af97f75e0e46d613608f9440dec0165815 /Modules/Platform/WindowsKernelModeDriver-Initialize.cmake
parentd84681d8f068225f786453a5a77791a1eb8e5459 (diff)
downloadCMake-b01f5eb079ad2cb2ac4a114132f6bd12daa712d9.zip
CMake-b01f5eb079ad2cb2ac4a114132f6bd12daa712d9.tar.gz
CMake-b01f5eb079ad2cb2ac4a114132f6bd12daa712d9.tar.bz2
Windows: Add experimental WindowsKernelModeDriver platform
Diffstat (limited to 'Modules/Platform/WindowsKernelModeDriver-Initialize.cmake')
-rw-r--r--Modules/Platform/WindowsKernelModeDriver-Initialize.cmake11
1 files changed, 11 insertions, 0 deletions
diff --git a/Modules/Platform/WindowsKernelModeDriver-Initialize.cmake b/Modules/Platform/WindowsKernelModeDriver-Initialize.cmake
new file mode 100644
index 0000000..6f0ef33
--- /dev/null
+++ b/Modules/Platform/WindowsKernelModeDriver-Initialize.cmake
@@ -0,0 +1,11 @@
+# undocumented, do not use outside of CMake
+cmake_language(GET_EXPERIMENTAL_FEATURE_ENABLED "WindowsKernelModeDriver" _cmake_windows_kernel_mode_driver_enabled)
+if(NOT _cmake_windows_kernel_mode_driver_enabled)
+ message(FATAL_ERROR "Windows kernel-mode driver experimental support is not enabled.")
+endif()
+
+if(CMAKE_GENERATOR MATCHES "Visual Studio")
+ message(FATAL_ERROR "Visual Studio generators do not yet support CMAKE_SYSTEM_NAME=WindowsKernelModeDriver.")
+endif()
+
+set(_CMAKE_FEATURE_DETECTION_TARGET_TYPE STATIC_LIBRARY)