diff --git a/examples/llava/CMakeLists.txt b/examples/llava/CMakeLists.txt index 9ddb5af5c..d02e6ab46 100644 --- a/examples/llava/CMakeLists.txt +++ b/examples/llava/CMakeLists.txt @@ -3,7 +3,9 @@ add_library(${TARGET} clip.cpp clip.h) install(TARGETS ${TARGET} LIBRARY) target_link_libraries(${TARGET} PRIVATE common llama ${CMAKE_THREAD_LIBS_INIT}) target_compile_features(${TARGET} PRIVATE cxx_std_11) -target_compile_options(${TARGET} PRIVATE -Wno-cast-qual) # stb_image.h +if (NOT MSVC) + target_compile_options(${TARGET} PRIVATE -Wno-cast-qual) # stb_image.h + endif() if(TARGET BUILD_INFO) add_dependencies(${TARGET} BUILD_INFO) endif()