Correct error message usage in CMakeLists.txt. (#404)

This commit is contained in:
Andreas Süßenbach 2019-10-08 10:35:51 +02:00 committed by GitHub
parent 89c9c91efd
commit 7f51d1a724
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -23,7 +23,7 @@ option (SAMPLES_BUILD_WITH_LOCAL_VULKAN_HPP OFF)
if (CMAKE_SYSTEM_NAME MATCHES "Windows") if (CMAKE_SYSTEM_NAME MATCHES "Windows")
add_definitions(-DNOMINMAX -DVK_USE_PLATFORM_WIN32_KHR) add_definitions(-DNOMINMAX -DVK_USE_PLATFORM_WIN32_KHR)
else() else()
error("unhandled platform !") message(FATAL_ERROR, "unhandled platform !")
endif() endif()
add_definitions(-DVULKAN_HPP_DISPATCH_LOADER_DYNAMIC=1) add_definitions(-DVULKAN_HPP_DISPATCH_LOADER_DYNAMIC=1)