diff options
Diffstat (limited to 'CMakeLists.txt')
| -rw-r--r-- | CMakeLists.txt | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 39698e68..a933991a 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -9,6 +9,12 @@ project (VULKAN) # vulkan-<major>.dll (and other files). set(MAJOR "0") +if(WIN32) + add_definitions(-DVK_USE_PLATFORM_WIN32_KHR) +else() + add_definitions(-DVK_USE_PLATFORM_XCB_KHR) +endif() + set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_SOURCE_DIR}/cmake") # Header file for CMake settings |
