Formatting

This commit is contained in:
Mohamed Oulmahdi 2022-06-30 00:10:47 +02:00
parent 7af9b2fae3
commit 6fcbf5784c
1 changed files with 8 additions and 9 deletions

View File

@ -194,20 +194,19 @@ find_package(toml11 QUIET)
if(toml11_FOUND)
add_library(toml11_target INTERFACE)
target_link_libraries(toml11_target INTERFACE toml11::toml11)
else()
include(ExternalProject)
else()
include(ExternalProject)
ExternalProject_add(toml11Project
URL "https://github.com/ToruNiina/toml11/archive/v3.4.0.tar.gz"
URL_HASH SHA256=bc6d733efd9216af8c119d8ac64a805578c79cc82b813e4d1d880ca128bd154d
CMAKE_CACHE_ARGS
-DCMAKE_INSTALL_PREFIX:PATH=${CMAKE_CURRENT_BINARY_DIR}/toml11
-Dtoml11_BUILD_TEST:BOOL=OFF
-DCMAKE_INSTALL_PREFIX:PATH=${CMAKE_CURRENT_BINARY_DIR}/toml11
-Dtoml11_BUILD_TEST:BOOL=OFF
BUILD_ALWAYS ON)
add_library(toml11_target INTERFACE)
add_dependencies(toml11_target toml11Project)
target_include_directories(toml11_target SYSTEM INTERFACE ${CMAKE_CURRENT_BINARY_DIR}/toml11/include)
endif()
add_library(toml11_target INTERFACE)
add_dependencies(toml11_target toml11Project)
target_include_directories(toml11_target SYSTEM INTERFACE ${CMAKE_CURRENT_BINARY_DIR}/toml11/include)
endif()
################################################################################
# Coroutine implementation