Skip to content

Commit 25ab5ea

Browse files
committed
BUILD: when building windows binaries do not look for libcurl as if it 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.
1 parent 5e3a784 commit 25ab5ea

File tree

1 file changed

+13
-17
lines changed

1 file changed

+13
-17
lines changed

Diff for: CMakeLists.txt

+13-17
Original file line numberDiff line numberDiff line change
@@ -82,26 +82,22 @@ set(SRC_COMMON
8282
# Check build target, and included sources
8383
if(UNIX)
8484
list(APPEND SRC_COMMON
85-
"${DIR_SRC}/sv_sys_unix.c"
85+
"${DIR_SRC}/sv_sys_unix.c"
8686
)
87+
# Check for curl, and include sources and libs, if found
88+
find_package(CURL)
89+
if(NOT CURL_FOUND)
90+
message(STATUS "Curl library not found")
91+
else()
92+
list(APPEND SRC_COMMON
93+
"${DIR_SRC}/central.c"
94+
)
95+
endif()
8796
else()
8897
list(APPEND SRC_COMMON
89-
"${DIR_SRC}/sv_sys_win.c"
90-
"${DIR_SRC}/sv_windows.c"
91-
"${DIR_SRC}/winquake.rc"
92-
)
93-
endif()
94-
95-
96-
######################################################################################################
97-
98-
# Check for curl, and include sources and libs, if found
99-
find_package(CURL)
100-
if(NOT CURL_FOUND)
101-
message(STATUS "Curl library not found")
102-
else()
103-
list(APPEND SRC_COMMON
104-
"${DIR_SRC}/central.c"
98+
"${DIR_SRC}/sv_sys_win.c"
99+
"${DIR_SRC}/sv_windows.c"
100+
"${DIR_SRC}/winquake.rc"
105101
)
106102
endif()
107103

0 commit comments

Comments
 (0)