cmake puts its Makefile in the source directory

Bug #1451285 reported by Zarniwhoop
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Inkscape
Invalid
Medium
Unassigned

Bug Description

With cmake it is conventional to use a separate build directory, either in the build/ or ../build forms. By default, running cmake there will put the resulting Makefile there. With inkscape, generated cmake files appear to go there, but the Makefile is written to the source directory with the message 'Build files have been written to: /path/to/inkscape'

All the online documentation for cmake says that using a separate directory to build in (and therefore putting the Makefile there) is the default, but appears to be silent about how that could have been altered. I found one reference to using WRITE commands in CMakeLists.txt to force that, but inkscape is not doing that.

The message comes from cmake in Source/cmake.cxx but I've no idea where it gets the value from.

bzr r14094, cmake-3.2.2, linux x86_64 gcc-5.1.0.

Tags: build cmake
Revision history for this message
Zarniwhoop (zarniwhoop) wrote :

Actually, generated cmake files are NOT going into the build directory either, must have been where I copied them trying to diagnose an earlier problem. Everything is put in the source directory.

Changed in inkscape:
milestone: none → 0.92
Changed in inkscape:
importance: Undecided → Medium
jazzynico (jazzynico)
Changed in inkscape:
milestone: 0.92 → 0.93
Revision history for this message
Sylvain Chiron (frigory) wrote :

Could you please detail more precisely the process you follow? Running `cmake ..` in a build subfolder, I have the files at the right place, so I don’t see where the bug is…

Revision history for this message
Zarniwhoop (zarniwhoop) wrote : Re: [Bug 1451285] Re: cmake puts its Makefile in the source directory

On Wed, Jun 28, 2017 at 01:00:32PM -0000, Sylvain Chiron wrote:
> Could you please detail more precisely the process you follow? Running
> `cmake ..` in a build subfolder, I have the files at the right place, so
> I don’t see where the bug is…
>
Looking at (my) comment #1, it seems I was mistaken when I raised
this. I don't think I had the ability to close this, and now I
no-longer have a launchpad ID so I definitely can't close it.

Please close.
--
I live in a city. I know sparrows from starlings. After that
everything is a duck as far as I'm concerned. -- Monstrous Regiment

Revision history for this message
Alvin Penner (apenner) wrote :

based on comment 3 above, I'm closing this...

Changed in inkscape:
status: New → Invalid
no longer affects: inkscape/0.92.x
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Related blueprints

Remote bug watches

Bug watches keep track of this bug in other bug trackers.