https://bugs.kde.org/show_bug.cgi?id=424392

            Bug ID: 424392
           Summary: Require CMake 3.15 due to list(PREPEND ...)
           Product: extra-cmake-modules
           Version: 5.72.0
          Platform: Compiled Sources
                OS: Linux
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: AndroidToolchain
          Assignee: aleix...@kde.org
          Reporter: matth...@ansorgs.de
                CC: ecm-bugs-n...@kde.org
  Target Milestone: ---

The current master toolchain/Android.cmake file says it requires CMake 3.7:

    cmake_minimum_required(VERSION "3.7")

However, it uses "list(PREPEND ...)" calls, such as in l. 165:

    list(PREPEND CMAKE_FIND_LIBRARY_SUFFIXES "_${CMAKE_ANDROID_ARCH_ABI}.so")

This syntax was introduced in CMake 3.15. Compare:

    https://cmake.org/cmake/help/v3.15/command/list.html
    https://cmake.org/cmake/help/v3.14/command/list.html

Consequentially, Android.cmake should require CMake 3.15. Otherwise, we'll see
errors such as the following when using the file it with an earlier version of
CMake (in my case 3.13.4 from Ubuntu 19.10 packages):

    CMake Error at /usr/local/share/ECM/toolchain/Android.cmake:165 (list):
    list does not recognize sub-command PREPEND

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to