summaryrefslogtreecommitdiffstats
path: root/Modules/Platform/Windows.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'Modules/Platform/Windows.cmake')
-rw-r--r--Modules/Platform/Windows.cmake16
1 files changed, 5 insertions, 11 deletions
diff --git a/Modules/Platform/Windows.cmake b/Modules/Platform/Windows.cmake
index d8b3957..1bf39cf 100644
--- a/Modules/Platform/Windows.cmake
+++ b/Modules/Platform/Windows.cmake
@@ -1,17 +1,11 @@
-set(WIN32 1)
-
-if(CMAKE_SYSTEM_NAME STREQUAL "WindowsCE")
- set(WINCE 1)
-elseif(CMAKE_SYSTEM_NAME STREQUAL "WindowsPhone")
- set(WINDOWS_PHONE 1)
-elseif(CMAKE_SYSTEM_NAME STREQUAL "WindowsStore")
- set(WINDOWS_STORE 1)
-endif()
-
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