Skip to content

Commit a474e80

Browse files
authored
Merge pull request #142 from QW-Group/cmake-windows-do_not_search_for_libcurl
BUILD: when building windows binaries do not look for libcurl as if i…
2 parents 9f730f8 + 25ab5ea commit a474e80

File tree

1 file changed

+13
-17
lines changed

1 file changed

+13
-17
lines changed

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)