Fix LLVM install rules to not set permissions on include/
authorNAKAMURA Takumi <geek4civic@gmail.com>
Mon, 10 Feb 2014 10:50:55 +0000 (10:50 +0000)
committerNAKAMURA Takumi <geek4civic@gmail.com>
Mon, 10 Feb 2014 10:50:55 +0000 (10:50 +0000)
commitc70006e1fcae4b2963d8835dd28162786e25cf34
tree23e9dba279b04bbaf82b83772728a3228cc4ab54
parent791a7e1603106fe37070492774fa62d832faab9b
Fix LLVM install rules to not set permissions on include/

The CMake install(DIRECTORY) command documents that it sets permissions
on directories it is asked to install.  Since the <prefix>/include
directory may not be exclusive to the LLVM installation, we should not
ask CMake to manage permissions of that directory for us.  Instead, give
only our own include/llvm and include/llvm-c subdirectories to the
install(DIRECTORY) command.

Fixes PR4500. Patch by Brad King.

llvm-svn: 201075
llvm/CMakeLists.txt