File tree 1 file changed +13
-17
lines changed
1 file changed +13
-17
lines changed Original file line number Diff line number Diff line change @@ -82,26 +82,22 @@ set(SRC_COMMON
82
82
# Check build target, and included sources
83
83
if (UNIX )
84
84
list (APPEND SRC_COMMON
85
- "${DIR_SRC} /sv_sys_unix.c"
85
+ "${DIR_SRC} /sv_sys_unix.c"
86
86
)
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 ()
87
96
else ()
88
97
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"
105
101
)
106
102
endif ()
107
103
You can’t perform that action at this time.
0 commit comments