diff --git a/examples/CMakeLists.txt b/examples/CMakeLists.txt index 79d39bf..4599a70 100644 --- a/examples/CMakeLists.txt +++ b/examples/CMakeLists.txt @@ -1,7 +1,11 @@ add_library(example-vm STATIC examplevm.c) target_link_libraries(example-vm PRIVATE evmc) -target_compile_options(example-vm PRIVATE -Wno-extra) +if(NOT MSVC) + target_compile_options(example-vm PRIVATE -Wno-extra) +endif() add_executable(example-capi capi.c) target_link_libraries(example-capi PRIVATE evmc example-vm) -target_compile_options(example-capi PRIVATE -Wno-extra) +if(NOT MSVC) + target_compile_options(example-capi PRIVATE -Wno-extra) +endif()