Skip to content

Commit

Permalink
BUILD: when building windows binaries do not look for libcurl as if i…
Browse files Browse the repository at this point in the history
…t is found it will attempt to use the native include paths which will break compilation, attempting to use the libcurl.a from debian won't work anyway being that it doesn't actually contain many of the dependencies.
  • Loading branch information
ciscon committed Jul 23, 2024
1 parent 5e3a784 commit 25ab5ea
Showing 1 changed file with 13 additions and 17 deletions.
30 changes: 13 additions & 17 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -82,26 +82,22 @@ set(SRC_COMMON
# Check build target, and included sources
if(UNIX)
list(APPEND SRC_COMMON
"${DIR_SRC}/sv_sys_unix.c"
"${DIR_SRC}/sv_sys_unix.c"
)
# Check for curl, and include sources and libs, if found
find_package(CURL)
if(NOT CURL_FOUND)
message(STATUS "Curl library not found")
else()
list(APPEND SRC_COMMON
"${DIR_SRC}/central.c"
)
endif()
else()
list(APPEND SRC_COMMON
"${DIR_SRC}/sv_sys_win.c"
"${DIR_SRC}/sv_windows.c"
"${DIR_SRC}/winquake.rc"
)
endif()


######################################################################################################

# Check for curl, and include sources and libs, if found
find_package(CURL)
if(NOT CURL_FOUND)
message(STATUS "Curl library not found")
else()
list(APPEND SRC_COMMON
"${DIR_SRC}/central.c"
"${DIR_SRC}/sv_sys_win.c"
"${DIR_SRC}/sv_windows.c"
"${DIR_SRC}/winquake.rc"
)
endif()

Expand Down

0 comments on commit 25ab5ea

Please sign in to comment.