Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cmake DESTDIR support is broken #84

Closed
davvid opened this issue Oct 18, 2016 · 1 comment
Closed

cmake DESTDIR support is broken #84

davvid opened this issue Oct 18, 2016 · 1 comment
Assignees

Comments

@davvid
Copy link
Contributor

davvid commented Oct 18, 2016

System Information (OS, Hardware, etc.)

Linux RHEL7

Package Versions

N/A

Build Flags

Set the install prefix to a non-writable directory

Steps to Reproduce

$ mkdir -p build
$ cd build
$ cmake -D CMAKE_INSTALL_PREFIX=/usr/local/foo ..
$ make DESTDIR=/tmp/foo install
[....]
Install the project...
-- Install configuration: "Release"
CMake Error at pxr/cmake_install.cmake:36 (file):
  file Internal CMake error when trying to open file:
  /usr/local/foo/lib/python/pxr/__init__.py for writing.
Call Stack (most recent call first):
  cmake_install.cmake:37 (INCLUDE)

I'll submit a pull request shortly with a proposed solution.

@jtran56
Copy link

jtran56 commented Oct 18, 2016

Filed as internal issue #138888.

AdamFelt pushed a commit to autodesk-forks/USD that referenced this issue Apr 16, 2024
(cherry picked from commit f615f096ddff9c275385af7a7e709f1c7302be0c)
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

No branches or pull requests

3 participants