From 03c31a55bea22717fd65b1089197d2196e7d3aa9 Mon Sep 17 00:00:00 2001 From: "alexey.lysiuk" Date: Sun, 6 Oct 2024 10:49:41 +0300 Subject: [PATCH] no message --- CMakeLists.txt | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 4455d1f..c066a68 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -387,6 +387,12 @@ else() add_executable(${PROJECT_NAME} WIN32) endif() +if(PROJECT_VKQUAKE) + set_property(TARGET ${PROJECT_NAME} PROPERTY C_STANDARD 11) +else() + set_property(TARGET ${PROJECT_NAME} PROPERTY C_STANDARD 90) +endif() + target_compile_definitions(${PROJECT_NAME} PRIVATE USE_CODEC_UMX USE_CODEC_WAVE @@ -725,8 +731,6 @@ if(PROJECT_SPIKED) endif() target_link_libraries(${PROJECT_NAME} PRIVATE ${CMAKE_DL_LIBS}) -elseif(PROJECT_VKQUAKE) - set_property(TARGET ${PROJECT_NAME} PROPERTY C_STANDARD 11) endif() if(PROJECT_IRONWAIL)