From a800ae7aa563d3adbd8362695bbbd6a2f219d99c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Bylica?= Date: Tue, 10 Apr 2018 14:12:12 +0200 Subject: [PATCH] Fix examples build config --- examples/CMakeLists.txt | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) 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()