[fmi4cpp] Update to 0.7.0 (#6269)

* [fmi4cpp] update to 0.7.0

* Fix indentation

* Remove duplicate feature entry
This commit is contained in:
Griffin Downs 2019-04-30 15:02:18 -07:00 committed by GitHub
parent 5314524f44
commit 9db65c7891
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 16 additions and 6 deletions

View File

@ -1,7 +1,11 @@
Source: fmi4cpp
Version: 0.5.3
Version: 0.7.0
Description: FMI 2.0 implementation written in modern C++
Build-Depends: boost-property-tree, bzip2 (linux), openssl (linux), libzip, spdlog
Build-Depends: boost-property-tree, libzip[openssl]
Feature: curl
Build-Depends: curl
Description: Allows loading FMUs from URL
Feature: odeint
Build-Depends: boost-ublas, boost-odeint

View File

@ -15,11 +15,16 @@ include(vcpkg_common_functions)
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO NTNU-IHB/FMI4cpp
REF v0.5.3
SHA512 1c62f1fce4d3c0c18bc0a470827be13bc143ec8152ac75781e4d61d332b97389afc5943001e7cb8ae0ea7ebc141d88b00033de73a3d5696923a3f1c05f8ff904
REF v0.7.0
SHA512 5846f5b28badb5b4836ffd9d284f602dd243df20d3c82cab5e2b62b8be37e0ab05b7422bca066f37ca67ee0d5b35abd2febe87f623fc3b9854d245e86e1e21fe
HEAD_REF master
)
set(WITH_CURL OFF)
if("curl" IN_LIST FEATURES)
set(WITH_CURL ON)
endif()
set(WITH_ODEINT OFF)
if("odeint" IN_LIST FEATURES)
set(WITH_ODEINT ON)
@ -28,15 +33,16 @@ endif()
vcpkg_configure_cmake(
SOURCE_PATH ${SOURCE_PATH}
PREFER_NINJA
OPTIONS
OPTIONS
-DFMI4CPP_BUILD_TOOL=OFF
-DFMI4CPP_BUILD_TESTS=OFF
-DFMI4CPP_BUILD_EXAMPLES=OFF
-DFMI4CPP_WITH_CURL=${WITH_CURL}
-DFMI4CPP_WITH_ODEINT=${WITH_ODEINT}
)
vcpkg_install_cmake()
vcpkg_fixup_cmake_targets(CONFIG_PATH "lib/cmake/FMI4cpp")
vcpkg_fixup_cmake_targets()
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/share)