Skip to content
This repository has been archived by the owner on Oct 2, 2020. It is now read-only.

Fixed broken install prefix setting #409

Closed
wants to merge 2 commits into from

Conversation

metacollin
Copy link

This does not work for macOS users. It will try to install to /usr/local/share/kicad (which does not exist) and fails without installing anything.

This is caused by how CMAKE_INSTALL_PREFIX is being handled. Without using FORCE because the project ( ) command, whose job is to setup the basic variables needed, will have already set CMAKE_INSTALL_PREFIX. Some older versions of cmake with an incomplete implementation of project don't set the install prefix, allowing this to accidentally work. That is not the intended behavior however, nor does it work with recent versions of cmake.

This commit fixes the problem by using the canonical way to handle the CMAKE_INSTALL_PREFIX according to the cmake developers: https://public.kitware.com/pipermail/cmake/2010-December/041135.html

This does not work for macOS users.  It will try to install to /usr/local/share/kicad (which does not exist) and fails without installing anything.

This is caused by how CMAKE_INSTALL_PREFIX is being handled.  Without using FORCE because the project ( ) command, whose job is to setup the basic variables needed, will have already set CMAKE_INSTALL_PREFIX.  Some older versions of cmake with an incomplete implementation of project don't set the install prefix, allowing this to accidentally work.  That is not the intended behavior however, nor does it work with recent versions of cmake.

This commit fixes the problem by using the canonical way to handle the CMAKE_INSTALL_PREFIX according to the cmake developers: https://public.kitware.com/pipermail/cmake/2010-December/041135.html
@poeschlr
Copy link
Collaborator

Same change for footprint repo: KiCad/kicad-footprints#450

@antoniovazquezblanco
Copy link
Collaborator

Following KiCad/kicad-footprints#450 this PR does not solve the issue it intended. I will close the current PR for this reason.

If the issue is still present please note it here or open a new issue so that we will keep track of it.

@myfreescalewebpage myfreescalewebpage added Abandoned Original author has stopped working on the PR Bug Fix symbol existing in the library labels May 22, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Abandoned Original author has stopped working on the PR Bug Fix symbol existing in the library
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants