Skip to content

Commit 6f62c43

Browse files
authored
Using proxyfmu/0.4.1 that uses increased frame size (#789)
* Using proxyfmu/0.4.1
1 parent bdf6d7b commit 6f62c43

File tree

6 files changed

+46
-3
lines changed

6 files changed

+46
-3
lines changed

.github/workflows/ci-cmake.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,9 @@ jobs:
3636
"https://github.com/viproma/debian-fmilib/releases/download/debian%2F2.0.3-1/libfmilib2_2.0.3-1_amd64.deb" \
3737
"https://github.com/viproma/debian-fmilib/releases/download/debian%2F2.0.3-1/libfmilib2-dev_2.0.3-1_amd64.deb"
3838
RUN dpkg -i libfmilib2_2.0.3-1_amd64.deb libfmilib2-dev_2.0.3-1_amd64.deb
39+
RUN wget --no-check-certificate https://github.com/PJK/libcbor/archive/refs/tags/v0.11.0.tar.gz && \
40+
tar xaf v0.11.0.tar.gz && cd libcbor-0.11.0 && \
41+
cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_POSITION_INDEPENDENT_CODE=ON . && make && make install
3942
COPY entrypoint.sh /
4043
ENTRYPOINT /entrypoint.sh
4144
EOF

.github/workflows/ci-conan.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ jobs:
3535
#!/bin/bash -v
3636
set -eu
3737
cd /mnt/source
38+
pip install conan --upgrade
3839
conan remote add osp https://osp.jfrog.io/artifactory/api/conan/conan-local --force
3940
REFNAME="${GITHUB_REF#refs/*/}"
4041
VERSION="v$(<version.txt)"
@@ -50,6 +51,7 @@ jobs:
5051
--options="${{ matrix.option_shared }}" \
5152
--update \
5253
--build=missing \
54+
--build=b2/* \
5355
--user=osp \
5456
--channel="${CHANNEL}" \
5557
.

CMakeLists.txt

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,13 @@ find_package(libzip REQUIRED)
113113
find_package(Microsoft.GSL REQUIRED)
114114
find_package(yaml-cpp REQUIRED)
115115
find_package(XercesC MODULE REQUIRED)
116-
find_package(libcbor REQUIRED)
116+
find_package(libcbor)
117+
118+
if (NOT libcbor_FOUND)
119+
message(CHECK_START "Could not find libcbor, trying to use system version")
120+
find_package(libcbor MODULE REQUIRED)
121+
endif ()
122+
117123
if(LIBCOSIM_WITH_PROXYFMU)
118124
find_package(PROXYFMU CONFIG REQUIRED)
119125
endif()

cmake/Findlibcbor.cmake

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
# FindLibCBOR.cmake
2+
# Locate libcbor library and headers, and define libcbor::libcbor target
3+
4+
find_path(LIBCBOR_INCLUDE_DIR
5+
NAMES cbor.h
6+
PATH_SUFFIXES include
7+
)
8+
9+
find_library(LIBCBOR_LIBRARY
10+
NAMES cbor libcbor
11+
PATH_SUFFIXES lib
12+
)
13+
14+
include(FindPackageHandleStandardArgs)
15+
find_package_handle_standard_args(libcbor
16+
REQUIRED_VARS LIBCBOR_LIBRARY LIBCBOR_INCLUDE_DIR
17+
)
18+
19+
if(LIBCBOR_FOUND)
20+
set(LIBCBOR_INCLUDE_DIRS ${LIBCBOR_INCLUDE_DIR})
21+
set(LIBCBOR_LIBRARIES ${LIBCBOR_LIBRARY})
22+
23+
if(NOT TARGET libcbor::libcbor)
24+
add_library(libcbor::libcbor UNKNOWN IMPORTED)
25+
set_target_properties(libcbor::libcbor PROPERTIES
26+
IMPORTED_LOCATION "${LIBCBOR_LIBRARY}"
27+
INTERFACE_INCLUDE_DIRECTORIES "${LIBCBOR_INCLUDE_DIR}"
28+
)
29+
endif()
30+
endif()
31+
32+
mark_as_advanced(LIBCBOR_INCLUDE_DIR LIBCBOR_LIBRARY)

conanfile.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ def requirements(self):
4747
self.requires("ms-gsl/[>=3 <5]", transitive_headers=True)
4848
self.requires("boost/[~1.85]", transitive_headers=True, transitive_libs=True) # Required by Thrift
4949
if self.options.proxyfmu:
50-
self.requires("proxyfmu/0.3.3@osp/testing",
50+
self.requires("proxyfmu/0.4.1@osp/stable",
5151
transitive_headers=True,
5252
transitive_libs=True)
5353
self.requires("yaml-cpp/[~0.8]")

version.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
0.11.0
1+
0.11.1

0 commit comments

Comments
 (0)