mmozeiko / RcloneBrowser

Simple cross platform GUI for rclone
https://mmozeiko.github.io/RcloneBrowser
The Unlicense
1.32k stars 419 forks source link

Unknown CMake command "use_pch". #87

Closed fizwit closed 6 years ago

fizwit commented 6 years ago

building from source on Linux Ubuntu CMake 3.7.2

CMake Error at CMakeLists.txt:78 (use_pch): Unknown CMake command "use_pch".

CMake Warning (dev) in CMakeLists.txt: No cmake_minimum_required command is present. A line of code such as

cmake_minimum_required(VERSION 3.7)

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".

mmozeiko commented 6 years ago

Have you modified source? use_pch is defined here: https://github.com/mmozeiko/RcloneBrowser/blob/master/CMakeLists.txt#L39

fizwit commented 6 years ago

I am using the download from tag 1.2. the download for tag 1.2 and download for master are very different than your link. https://github.com/mmozeiko/RcloneBrowser/archive/master.zip has a very old version of CMakeLists.txt

mmozeiko commented 6 years ago

Tag 1.2 has exactly same line in CMakeLists.txt: https://github.com/mmozeiko/RcloneBrowser/blob/1.2/CMakeLists.txt#L39

mmozeiko commented 6 years ago

Oh, are you building from src folder? You need to start build from root, it has main CMakeLists.txt file which sets up bunch of stuff including CMake minimum version number.

Check the readme file for detailed steps how to build.