Fix examples build config

This commit is contained in:
Paweł Bylica 2018-04-10 14:12:12 +02:00
parent 93fb8687e6
commit a800ae7aa5
No known key found for this signature in database
GPG Key ID: 7A0C037434FE77EF
1 changed files with 6 additions and 2 deletions

View File

@ -1,7 +1,11 @@
add_library(example-vm STATIC examplevm.c) add_library(example-vm STATIC examplevm.c)
target_link_libraries(example-vm PRIVATE evmc) 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) add_executable(example-capi capi.c)
target_link_libraries(example-capi PRIVATE evmc example-vm) 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()