DevHeads.net

CMake Error: No source or binary directory provided

Hi,

It seems that since CMake 3.13, it is required to invoke the cmake
command explicitly with path to source, which was not required
previously. IOW in F29 was enough to call:

~~~

$ cmake

~~~

while F30+ requires:

~~~

$ cmake .

~~~

Unfortunately, neither upstream nor Fedora packagers perceives this
issue worth noting [1], although just during Ruby mass rebuild, I met
already quite some failing packages due to this issue.

Vít

[1] <a href="https://bugzilla.redhat.com/show_bug.cgi?id=1667306#c4" title="https://bugzilla.redhat.com/show_bug.cgi?id=1667306#c4">https://bugzilla.redhat.com/show_bug.cgi?id=1667306#c4</a>

Comments

Re: CMake Error: No source or binary directory provid

By Jonathan Wakely at 02/04/2019 - 19:17

On 04/02/19 12:49 +0100, Vít Ondruch wrote:
Ah, I wondered what that message meant!

I saw it for at least:

LuxRender
condor
leatherman
libapogee
librime
stp
sumwars

Re: CMake Error: No source or binary directory provid

By =?ISO-8859-1?Q?... at 02/04/2019 - 08:29

Actually, it seems this error was relaxed to warning in 3.13.4, which is
in Rawhide since yesterday:

<a href="https://github.com/Kitware/CMake/commit/2395b1b244743aaf28426a72f37d1aac96e3db9e" title="https://github.com/Kitware/CMake/commit/2395b1b244743aaf28426a72f37d1aac96e3db9e">https://github.com/Kitware/CMake/commit/2395b1b244743aaf28426a72f37d1aac...</a>

Vít

Dne 04. 02. 19 v 12:49 Vít Ondruch napsal(a):

Re: CMake Error: No source or binary directory provid

By =?ISO-8859-1?Q?... at 02/04/2019 - 07:58

The most naive grep identifies at least 23 packages:

~~~

$ grep -R -e '^%cmake$' | wc -l
23

~~~

Vít

Dne 04. 02. 19 v 12:49 Vít Ondruch napsal(a):