CMake: Support multiple evmc project instances

This commit is contained in:
Paweł Bylica 2018-04-09 16:13:31 +02:00
parent e7923a2f3e
commit 594804d1d7
No known key found for this signature in database
GPG Key ID: 7A0C037434FE77EF
1 changed files with 5 additions and 0 deletions

View File

@ -1,5 +1,10 @@
cmake_minimum_required(VERSION 3.5)
if(TARGET evmc)
# The evmc library has been already created (probably by other submodule).
return()
endif()
project(evmc)
add_library(evmc INTERFACE)