From e21bb9f7ed22dfc94f768c333f34ddc549cd3ea6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tomasz=20Mo=C5=84?= Date: Wed, 2 Oct 2019 10:44:18 +0200 Subject: [PATCH] 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 Reviewed-by: Peter Wu --- cmake/modules/FindWSLibrary.cmake | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cmake/modules/FindWSLibrary.cmake b/cmake/modules/FindWSLibrary.cmake index 20e183cfe1..c5c06ece37 100644 --- a/cmake/modules/FindWSLibrary.cmake +++ b/cmake/modules/FindWSLibrary.cmake @@ -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)