Skip to content

The 'install' -target for make tries to change permissions on existing directories #160

@Peanhua

Description

@Peanhua

If I have the installation target "include" and other directories already in place, I do not wish to see their permissions altered in any way.

This can be tested for example with the following:

$ sudo bash -c 'rm -rf /tmp/f ; mkdir -p /tmp/f/{bin,include,lib,src} && chmod go-w /tmp/f && chmod go+w /tmp/f/*'
$ tar xf ozz-animation-0.14.1.tar.gz
$ cd ozz-animation-0.14.1
$ mkdir build
$ cd build
$ cmake -DCMAKE_INSTALL_PREFIX=/tmp/f ..
$ cmake --build ./
$ make install
<snip>
Install the project...
-- Install configuration: ""
-- Up-to-date: /tmp/f/./include
CMake Error at cmake_install.cmake:46 (file):
  file INSTALL cannot set permissions on "/tmp/f/./include": Operation not
  permitted.


make: *** [Makefile:130: install] Error 1

The above test should finish without errors. The behavior is same with the 0.14.1 release and current master branch.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions