Skip to content

Commit

Permalink
fix(drivers): fix curl and iconv dependencies. (#2075)
Browse files Browse the repository at this point in the history
  • Loading branch information
TallFurryMan authored Jun 17, 2024
1 parent aa1cb9a commit 81f39f1
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 96 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,7 @@ if(INDI_BUILD_DRIVERS)
find_package(GSL REQUIRED)
find_package(JPEG REQUIRED)
find_library(M_LIB m)
if(CYGWIN)
if(CYGWIN OR UNIX)
find_package(Iconv REQUIRED)
endif()

Expand Down
88 changes: 0 additions & 88 deletions cmake_modules/FindIconv.cmake

This file was deleted.

4 changes: 2 additions & 2 deletions libs/hid/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,8 @@ install(FILES
# ########## HID Test ##############
if(APPLE)
set(LIBS "-framework IOKit -framework CoreFoundation")
elseif(CYGWIN)
set(LIBS ${ICONV_LIBRARIES})
elseif(CYGWIN OR UNIX)
set(LIBS ${Iconv_LIBRARIES})
endif()

add_executable(indi_hid_test hidtest.cpp)
Expand Down
9 changes: 4 additions & 5 deletions libs/indibase/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,13 @@ list(APPEND ${PROJECT_NAME}_LIBS
${JPEG_LIBRARY}
${FFTW3_LIBRARIES}
${M_LIB}
$<$<PLATFORM_ID:CYGWIN>:${ICONV_LIBRARIES}>
${CURL}
)

# Add Iconv
if(CMAKE_SYSTEM_NAME MATCHES "FreeBSD")
# FreeBSD needs to find the correct GNU iconv library.
# Add Iconv - FreeBSD needs to find the correct GNU iconv library.
if(CYGWIN OR UNIX OR (CMAKE_SYSTEM_NAME MATCHES "FreeBSD"))
find_package(Iconv REQUIRED)
list(APPEND ${PROJECT_NAME}_LIBS ${ICONV_LIBRARIES})
list(APPEND ${PROJECT_NAME}_LIBS ${Iconv_LIBRARIES})
endif()

# Add WebSocket
Expand Down

0 comments on commit 81f39f1

Please sign in to comment.