diff options
author | Tomasz Moń <desowin@gmail.com> | 2019-10-02 10:44:18 +0200 |
---|---|---|
committer | Peter Wu <peter@lekensteyn.nl> | 2019-10-02 09:55:44 +0000 |
commit | e21bb9f7ed22dfc94f768c333f34ddc549cd3ea6 (patch) | |
tree | 48df0e12bc2d11f3c4e4c13604622c726348eec8 /cmake | |
parent | 145c8c6065c7acc2150ba4fb611f3f8a5608f09e (diff) |
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>
Diffstat (limited to 'cmake')
-rw-r--r-- | cmake/modules/FindWSLibrary.cmake | 3 |
1 files changed, 2 insertions, 1 deletions
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) |