--- Vulkan-Loader-1.2.158.orig/loader/CMakeLists.txt
+++ Vulkan-Loader-1.2.158/loader/CMakeLists.txt
@@ -321,11 +335,11 @@
         )
 # cmake-format: on
     endif()
+endif()
 
     if(NOT APPLE)
         target_compile_definitions(vulkan PRIVATE _XOPEN_SOURCE=500) # hush compiler warnings for readlink
     endif()
-endif()
 
 # Generate pkg-config file.
 include(FindPkgConfig QUIET)
