mirror of https://github.com/status-im/evmc.git
cmake: Specify c++11 as required compile feature
This commit is contained in:
parent
180f94510d
commit
79932fdcfa
|
@ -4,10 +4,12 @@
|
||||||
|
|
||||||
add_library(example-precompiles-vm SHARED example_precompiles_vm.cpp example_precompiles_vm.h)
|
add_library(example-precompiles-vm SHARED example_precompiles_vm.cpp example_precompiles_vm.h)
|
||||||
add_library(evmc::example-precompiles-vm ALIAS example-precompiles-vm)
|
add_library(evmc::example-precompiles-vm ALIAS example-precompiles-vm)
|
||||||
|
target_compile_features(example-precompiles-vm PRIVATE cxx_std_11)
|
||||||
target_link_libraries(example-precompiles-vm PRIVATE evmc::evmc)
|
target_link_libraries(example-precompiles-vm PRIVATE evmc::evmc)
|
||||||
|
|
||||||
add_library(example-precompiles-vm-static STATIC example_precompiles_vm.cpp example_precompiles_vm.h)
|
add_library(example-precompiles-vm-static STATIC example_precompiles_vm.cpp example_precompiles_vm.h)
|
||||||
add_library(evmc::example-precompiles-vm-static ALIAS example-precompiles-vm-static)
|
add_library(evmc::example-precompiles-vm-static ALIAS example-precompiles-vm-static)
|
||||||
|
target_compile_features(example-precompiles-vm-static PRIVATE cxx_std_11)
|
||||||
target_link_libraries(example-precompiles-vm-static PRIVATE evmc::evmc)
|
target_link_libraries(example-precompiles-vm-static PRIVATE evmc::evmc)
|
||||||
|
|
||||||
set_source_files_properties(example_precompiles_vm.cpp PROPERTIES
|
set_source_files_properties(example_precompiles_vm.cpp PROPERTIES
|
||||||
|
|
|
@ -8,6 +8,7 @@ target_include_directories(evmc INTERFACE $<BUILD_INTERFACE:${include_dir}>$<INS
|
||||||
|
|
||||||
add_library(evmc_cpp INTERFACE)
|
add_library(evmc_cpp INTERFACE)
|
||||||
add_library(evmc::evmc_cpp ALIAS evmc_cpp)
|
add_library(evmc::evmc_cpp ALIAS evmc_cpp)
|
||||||
|
target_compile_features(evmc_cpp INTERFACE cxx_std_11)
|
||||||
target_include_directories(evmc_cpp INTERFACE $<BUILD_INTERFACE:${include_dir}>$<INSTALL_INTERFACE:include>)
|
target_include_directories(evmc_cpp INTERFACE $<BUILD_INTERFACE:${include_dir}>$<INSTALL_INTERFACE:include>)
|
||||||
target_link_libraries(evmc_cpp INTERFACE evmc::evmc)
|
target_link_libraries(evmc_cpp INTERFACE evmc::evmc)
|
||||||
|
|
||||||
|
|
|
@ -31,6 +31,7 @@ target_link_libraries(
|
||||||
evmc::example-vm-static
|
evmc::example-vm-static
|
||||||
evmc::example-precompiles-vm-static
|
evmc::example-precompiles-vm-static
|
||||||
evmc::instructions
|
evmc::instructions
|
||||||
|
evmc::evmc_cpp
|
||||||
GTest::gtest_main
|
GTest::gtest_main
|
||||||
)
|
)
|
||||||
set_target_properties(evmc-unittests PROPERTIES RUNTIME_OUTPUT_DIRECTORY ..)
|
set_target_properties(evmc-unittests PROPERTIES RUNTIME_OUTPUT_DIRECTORY ..)
|
||||||
|
|
Loading…
Reference in New Issue