CMake: Make FindWSLibrary compatible with older CMake
On Linux we support CMake 3.5 so we cannot use cmake_parser_arguments() with PARSE_ARGV option that was added in CMake 3.7. Change-Id: I84e7b679c2a73e5a7a29ac83a3283aedf542f9a4 Reviewed-on: https://code.wireshark.org/review/34674 Petri-Dish: Pascal Quantin <pascal@wireshark.org> Reviewed-by: Peter Wu <peter@lekensteyn.nl>
This commit is contained in:
parent
145c8c6065
commit
e21bb9f7ed
|
@ -4,11 +4,12 @@
|
||||||
# library directory structure
|
# library directory structure
|
||||||
|
|
||||||
function(FindWSLibrary OUTPUT_LIBRARY)
|
function(FindWSLibrary OUTPUT_LIBRARY)
|
||||||
cmake_parse_arguments(PARSE_ARGV 1
|
cmake_parse_arguments(
|
||||||
WS_LIB
|
WS_LIB
|
||||||
""
|
""
|
||||||
"WIN32_HINTS"
|
"WIN32_HINTS"
|
||||||
"NAMES;HINTS;PATHS"
|
"NAMES;HINTS;PATHS"
|
||||||
|
${ARGN}
|
||||||
)
|
)
|
||||||
|
|
||||||
if (WIN32)
|
if (WIN32)
|
||||||
|
|
Loading…
Reference in New Issue