I’m trying to build the latest master from source on Ubuntu 20.04, following the instructions here. Unfortunately, I’m getting some CMake errors (no prior CMake experience I’m afraid) and my google-foo has failed me, so I was wondering if someone could help point me in the right direction. The output I get is:
CMake Error at data/CMakeLists.txt:28 (install): install FILES given no DESTINATION! CMake Warning (dev) at CMakeLists.txt:12 (add_subdirectory): The source directory /home/username/workspace/krita/krita/pics/branding does not contain a CMakeLists.txt file. CMake does not support this case but it used to work accidentally and is being allowed for compatibility. Policy CMP0014 is not set: Input directories must have CMakeLists.txt. Run "cmake --help-policy CMP0014" for policy details. Use the cmake_policy command to set the policy and suppress this warning. This warning is for project developers. Use -Wno-dev to suppress it. CMake Error at CMakeLists.txt:34 (ecm_add_app_icon): Unknown CMake command "ecm_add_app_icon". CMake Warning (dev) in CMakeLists.txt: No cmake_minimum_required command is present. A line of code such as cmake_minimum_required(VERSION 3.16) should be added at the top of the file. The version specified may be lower if you wish to support older CMake versions for this project. For more information run "cmake --help-policy CMP0000". This warning is for project developers. Use -Wno-dev to suppress it. -- Configuring incomplete, errors occurred! See also "/home/username/workspace/krita/build/CMakeFiles/CMakeOutput.log".
According to what I found, ecm_add_app_icon is provided by extra-cmake-modules which I installed, but still get the error. Also I’m not quite sure what to make of " install FILES given no DESTINATION!". If anyone could help it’d be greatly appreciated
Edit: Just for some more information, the code was cloned under /home/username/workspace/krita (the actual username was replaced for security reasons), and the command that generated this output was:
cmake …/krita/ -DCMAKE_INSTALL_PREFIX=$HOME/workspace/krita/install -DCMAKE_BUILD_TYPE=Debug -DKRITA_DEVS=ON
which I run from within the build folder (and krita/install was created manually as per the instructions before).