Skip to content

Commit

Permalink
Update CMakeLists.txt
Browse files Browse the repository at this point in the history
  • Loading branch information
stefankiesz authored Dec 20, 2024
1 parent 86f2a80 commit 51db766
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -168,15 +168,17 @@ else()
endif()

if(BUILD_COMMON_CURL)
find_package(CURL REQUIRED)
if (OPEN_SRC_INSTALL_PREFIX)
find_package(CURL REQUIRED PATHS ${OPEN_SRC_INSTALL_PREFIX})
else()
find_package(CURL REQUIRED)
endif()
if (WIN32)
set(CURL_LIBRARIES CURL::libcurl)
else()
set(OPEN_SRC_INCLUDE_DIRS ${OPEN_SRC_INCLUDE_DIRS} ${CURL_INCLUDE_DIR})
endif()

set(OPEN_SRC_INCLUDE_DIRS ${OPEN_SRC_INCLUDE_DIRS} ${CURL_INCLUDE_DIRS})
link_directories(${CURL_LIBRARY_DIRS})
endif()

if (BUILD_COMMON_LWS)
Expand Down

0 comments on commit 51db766

Please sign in to comment.