summaryrefslogtreecommitdiffstats
path: root/Modules/Platform/Windows.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/Windows.cmake
parentd84681d8f068225f786453a5a77791a1eb8e5459 (diff)
downloadCMake-b01f5eb079ad2cb2ac4a114132f6bd12daa712d9.zip
CMake-b01f5eb079ad2cb2ac4a114132f6bd12daa712d9.tar.gz
CMake-b01f5eb079ad2cb2ac4a114132f6bd12daa712d9.tar.bz2
Windows: Add experimental WindowsKernelModeDriver platform
Diffstat (limited to 'Modules/Platform/Windows.cmake')
-rw-r--r--Modules/Platform/Windows.cmake6
1 files changed, 5 insertions, 1 deletions
diff --git a/Modules/Platform/Windows.cmake b/Modules/Platform/Windows.cmake
index 8697e7a..1bf39cf 100644
--- a/Modules/Platform/Windows.cmake
+++ b/Modules/Platform/Windows.cmake
@@ -1,7 +1,11 @@
set(CMAKE_STATIC_LIBRARY_PREFIX "")
set(CMAKE_STATIC_LIBRARY_SUFFIX ".lib")
set(CMAKE_SHARED_LIBRARY_PREFIX "") # lib
-set(CMAKE_SHARED_LIBRARY_SUFFIX ".dll") # .so
+if(CMAKE_SYSTEM_NAME STREQUAL "WindowsKernelModeDriver")
+ set(CMAKE_SHARED_LIBRARY_SUFFIX ".sys") # .so
+else()
+ set(CMAKE_SHARED_LIBRARY_SUFFIX ".dll") # .so
+endif()
set(CMAKE_IMPORT_LIBRARY_PREFIX "")
set(CMAKE_IMPORT_LIBRARY_SUFFIX ".lib")
set(CMAKE_EXECUTABLE_SUFFIX ".exe") # .exe