From 187a821f3641d220199a95e1ffbe2c6782569a42 Mon Sep 17 00:00:00 2001 From: Dennis Klein Date: Wed, 26 Jun 2019 19:21:54 +0200 Subject: [PATCH] CMake: Revert VERSION option to single value arg This fixes a regression introduced in 0ff8eaf that caused other options to be ineffective in certain cases. Resolves #164 --- cmake/FairMQLib.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmake/FairMQLib.cmake b/cmake/FairMQLib.cmake index a5160053..4c4dc564 100644 --- a/cmake/FairMQLib.cmake +++ b/cmake/FairMQLib.cmake @@ -324,7 +324,7 @@ endmacro() # COMPONENTS and VERSION args are then just passed to the native find_package. # macro(find_package2 qualifier pkgname) - cmake_parse_arguments(ARGS "" "" "VERSION;COMPONENTS;ADD_REQUIREMENTS_OF" ${ARGN}) + cmake_parse_arguments(ARGS "" "VERSION" "COMPONENTS;ADD_REQUIREMENTS_OF" ${ARGN}) string(TOUPPER ${pkgname} pkgname_upper) set(__old_cpp__ ${CMAKE_PREFIX_PATH})