Skip to content
  • Rolf Eike Beer's avatar
    FindPkgConfig: remove variable dereference · b9ec9392
    Rolf Eike Beer authored
    If CMAKE_MINIMUM_REQUIRED_VERSION is not set because no
    cmake_minimum_required() call is present this line can lead to an error as that
    string is empty so too few arguments are passed to if():
    
    See also "/var/tmp/paludis/build/kde-krdc-15.08.0/work/build/CMakeFiles/CMakeOutput.log".
    See also "/var/tmp/paludis/build/kde-krdc-15.08.0/work/build/CMakeFiles/CMakeError.log".
    CMake Error at /usr/share/cmake/Modules/FindPkgConfig.cmake:112 (elseif):
      given arguments:
    
        "VERSION_LESS" "3.1"
    
      Unknown arguments specified
    Call Stack (most recent call first):
      /usr/share/cmake/Modules/FindPkgConfig.cmake:501 (_pkgconfig_parse_options)
      /usr/share/cmake/Modules/FindOpenSSL.cmake:43 (pkg_check_modules)
    b9ec9392