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:
Tomasz Moń 2019-10-02 10:44:18 +02:00 committed by Peter Wu
parent 145c8c6065
commit e21bb9f7ed
1 changed files with 2 additions and 1 deletions

View File

@ -4,11 +4,12 @@
# library directory structure
function(FindWSLibrary OUTPUT_LIBRARY)
cmake_parse_arguments(PARSE_ARGV 1
cmake_parse_arguments(
WS_LIB
""
"WIN32_HINTS"
"NAMES;HINTS;PATHS"
${ARGN}
)
if (WIN32)