Skip to content

Commit 3fac6bd

Browse files
try to fix snap build issue
Signed-off-by: Clark Wang <[email protected]>
1 parent fd2684c commit 3fac6bd

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
PROJECT(bcu)
2-
cmake_minimum_required(VERSION 3.4)
2+
cmake_minimum_required(VERSION 3.5)
33
set(CMAKE_CXX_STANDARD 11)
44
set(CMAKE_CXX_STANDARD_REQUIRED ON)
55
#set(CMAKE_BUILD_TYPE Debug)
@@ -25,7 +25,7 @@ message("operation system is ${CMAKE_SYSTEM}")
2525
if (LINUX)
2626
add_executable(bcu bcu.c port.c chip.c board.c bcu_parser.c bcu_yaml.c bcu_https.c bcu_ftdi_eeprom.c)
2727
link_directories(${LIBUSB_LIBRARY_DIRS} ${LIBFTDI_LIBRARY_DIRS} ${LIBYAML_LIBRARY_DIRS})
28-
target_link_libraries (bcu ${LIBUSB_LIBRARIES} ${LIBFTDI_LIBRARIES} ${LIBYAML_LIBRARIES} ${PROJECT_SOURCE_DIR}/libcurl/build.bcu/lib/libcurl.a -lpthread -lssl -lcrypto -lm)
28+
target_link_libraries (bcu ${LIBUSB_LIBRARIES} ${LIBFTDI_LIBRARIES} ${LIBYAML_LIBRARIES} ${PROJECT_SOURCE_DIR}/libcurl/build.bcu/lib/libcurl.a -lpthread -lssl -lcrypto -lm -ldl)
2929
execute_process( COMMAND ${PROJECT_SOURCE_DIR}/create_version_h.sh ${PROJECT_SOURCE_DIR}
3030
COMMAND ${PROJECT_SOURCE_DIR}/build_libs.sh ${PROJECT_SOURCE_DIR})
3131
install(TARGETS bcu DESTINATION bin)

snap/snapcraft.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ license: BSD-3-Clause
3232
adopt-info: main
3333
assumes:
3434
- command-chain
35-
base: core18
35+
base: core20
3636
confinement: strict
3737
grade: stable
3838

@@ -69,7 +69,7 @@ parts:
6969
- libftdi1-dev
7070
- libyaml-0-2
7171
- libusb-1.0-0
72-
- libssl1.0.0
72+
- libssl-dev
7373
- openssl
7474
override-stage: |
7575
set -xe

0 commit comments

Comments
 (0)