File tree Expand file tree Collapse file tree 6 files changed +46
-3
lines changed Expand file tree Collapse file tree 6 files changed +46
-3
lines changed Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change 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)"
5051 --options="${{ matrix.option_shared }}" \
5152 --update \
5253 --build=missing \
54+ --build=b2/* \
5355 --user=osp \
5456 --channel="${CHANNEL}" \
5557 .
Original file line number Diff line number Diff line change @@ -113,7 +113,13 @@ find_package(libzip REQUIRED)
113113find_package (Microsoft.GSL REQUIRED)
114114find_package (yaml-cpp REQUIRED)
115115find_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+
117123if (LIBCOSIM_WITH_PROXYFMU)
118124 find_package (PROXYFMU CONFIG REQUIRED)
119125endif ()
Original file line number Diff line number Diff line change 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)
Original file line number Diff line number Diff 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]" )
Original file line number Diff line number Diff line change 1- 0.11.0
1+ 0.11.1
You can’t perform that action at this time.
0 commit comments