Skip to content

Commit

Permalink
rpi build fix
Browse files Browse the repository at this point in the history
  • Loading branch information
nesbox committed Aug 5, 2023
1 parent 7c0e0ea commit 8091e7f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
2 changes: 0 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,6 @@ jobs:
run: |
apt-get update
apt-get install --assume-yes build-essential ruby-full gcc-8-arm-linux-gnueabihf g++-8-arm-linux-gnueabihf libcurl4-openssl-dev
dpkg -l | grep curl
find / -name 'curl.h'
- name: Build
run: |
Expand Down
7 changes: 6 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -1009,9 +1009,14 @@ if(USE_NAETT)

if(WIN32)
target_link_libraries(naett INTERFACE winhttp)
elseif(RPI)
set(CURL_INCLUDE_DIR /usr/include/x86_64-linux-gnu/)
find_package(CURL REQUIRED)
target_include_directories(naett PRIVATE ${CURL_INCLUDE_DIRS})
target_link_libraries(naett ${CURL_LIBRARIES})
elseif(LINUX)
find_package(CURL REQUIRED)
target_include_directories(naett PRIVATE ${CURL_INCLUDE_DIR})
target_include_directories(naett PRIVATE ${CURL_INCLUDE_DIRS})
target_link_libraries(naett ${CURL_LIBRARIES})
endif()
endif()
Expand Down

0 comments on commit 8091e7f

Please sign in to comment.