Skip to content

Fix relocatable install#538

Merged
jbeder merged 2 commits intojbeder:masterfrom
mwoehlke-kitware:fix-relocatable-install
Nov 10, 2017
Merged

Fix relocatable install#538
jbeder merged 2 commits intojbeder:masterfrom
mwoehlke-kitware:fix-relocatable-install

Conversation

@mwoehlke-kitware
Copy link
Copy Markdown
Contributor

Fix Windows library install location (.libs belong in lib; RUNTIME DESTINATION already takes care of installing .dlls to bin). Remove use of CMAKE_INSTALL_PREFIX when specifying install destinations. (Note: It is preferred that install destinations are specified as relative paths, not absolute paths. This is also needed to create relocatable installs.)

This should fix #526.

Don't install LIBRARIES on Windows to `bin`; they belong in `lib`. (This
appears to have been done in a mistaken attempt to install the DLL's to
`bin`, which do need to be there, but RUNTIME DESTINATION already takes
care of this.)
Remove use of CMAKE_INSTALL_PREFIX when specifying install destinations.
It is preferred that install destinations are specified as relative
paths, not absolute paths. This is also needed to create relocatable
installs, and thus should fix jbeder#526.
@jbeder jbeder merged commit dc9c750 into jbeder:master Nov 10, 2017
@mwoehlke-kitware mwoehlke-kitware deleted the fix-relocatable-install branch November 10, 2017 16:28
olivier-stasse added a commit to olivier-stasse/yaml_cpp_vendor that referenced this pull request Dec 16, 2020
This release is suppose to fix the two problems specified previously in the comment:
jbeder/yaml-cpp#538
jbeder/yaml-cpp#597

Tested (and needed) on macOS Catalina.
olivier-stasse added a commit to olivier-stasse/yaml_cpp_vendor that referenced this pull request Dec 16, 2020
This release is suppose to fix the two problems specified previously in the comment:
jbeder/yaml-cpp#538
jbeder/yaml-cpp#597

Tested (and needed) on macOS Catalina.

Signed-off-by: O. Stasse <[email protected]>
olivier-stasse added a commit to olivier-stasse/yaml_cpp_vendor that referenced this pull request Dec 16, 2020
This release is suppose to fix the two problems specified previously in the comment:
jbeder/yaml-cpp#538
jbeder/yaml-cpp#597

Tested (and needed) on macOS Catalina.

Signed-off-by: Olivier Stasse <[email protected]>
olivier-stasse added a commit to olivier-stasse/yaml_cpp_vendor that referenced this pull request Dec 17, 2020
This release is suppose to fix the two problems specified previously in the comment:
jbeder/yaml-cpp#538
jbeder/yaml-cpp#597

Tested (and needed) on macOS Catalina.

Signed-off-by: Olivier Stasse <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Request: Relocatable cmake export files

2 participants