@@ -20,6 +20,12 @@ project(VULKAN_LOADER VERSION 1.3.274 LANGUAGES C)
20
20
21
21
add_subdirectory (scripts )
22
22
23
+ set (CMAKE_C_STANDARD 99 )
24
+ set (CMAKE_C_STANDARD_REQUIRED ON )
25
+ set (CMAKE_C_EXTENSIONS OFF )
26
+ set (CMAKE_C_VISIBILITY_PRESET "hidden" )
27
+ set (CMAKE_MSVC_RUNTIME_LIBRARY "MultiThreaded$<$<CONFIG:Debug>:Debug>" )
28
+
23
29
# By default, loader & tests are built without sanitizers
24
30
# Use these options to force a specific sanitizer on the loader and test executables
25
31
if (UNIX )
@@ -129,12 +135,6 @@ target_link_libraries(loader_common_options INTERFACE platform_wsi)
129
135
# Enable beta Vulkan extensions
130
136
target_compile_definitions (loader_common_options INTERFACE VK_ENABLE_BETA_EXTENSIONS )
131
137
132
- target_compile_features (loader_common_options INTERFACE c_std_99 )
133
- set (LOADER_STANDARD_C_PROPERTIES C_STANDARD 99 C_STANDARD_REQUIRED YES C_EXTENSIONS OFF )
134
-
135
- # Force the use of the multithreaded, static version of the C runtime.
136
- set (CMAKE_MSVC_RUNTIME_LIBRARY "MultiThreaded$<$<CONFIG:Debug>:Debug>" )
137
-
138
138
option (BUILD_WERROR "Enable warnings as errors" )
139
139
140
140
# Set warnings as errors and the main diagnostic flags
@@ -163,10 +163,6 @@ if(CMAKE_C_COMPILER_ID MATCHES "GNU|Clang")
163
163
endif ()
164
164
endif ()
165
165
166
- if (UNIX )
167
- target_compile_options (loader_common_options INTERFACE -fvisibility=hidden )
168
- endif ()
169
-
170
166
target_compile_options (loader_common_options INTERFACE -Wpointer-arith )
171
167
endif ()
172
168
0 commit comments