Skip to content

Commit 8acb838

Browse files
committed
do not suppress warnings if not on MSVC
1 parent 798d7b6 commit 8acb838

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

CMakeLists.txt

+4-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,10 @@ project("stable-diffusion")
33

44
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
55

6-
add_compile_options(/w)
6+
# Suppress warnings for Vulkan
7+
if (MSVC AND SD_VULKAN)
8+
add_compile_options(/w)
9+
endif()
710

811
if (NOT XCODE AND NOT MSVC AND NOT CMAKE_BUILD_TYPE)
912
set(CMAKE_BUILD_TYPE Release CACHE STRING "Build type" FORCE)

0 commit comments

Comments
 (0)