[LLVMdev] CMake "sudo make install" & headers
Samuel Williams
space.ship.traveller at gmail.com
Fri Oct 1 15:03:28 PDT 2010
After some testing and mucking around, I found out there is something wrong:
install(DIRECTORY include/
DESTINATION include
PATTERN "*.def"
PATTERN "*.h"
PATTERN "*.td"
PATTERN "*.inc"
PATTERN ".svn" EXCLUDE
)
If I change this to
install(DIRECTORY include/
DESTINATION include
)
Things start installing as expected. I'm trying to understand from the CMake documentation why this is not working as expected, but it isn't really making a whole lot of sense.
Kind regards,
Samuel
On 2/10/2010, at 3:13 AM, Pau Garcia i Quiles wrote:
> On Thu, Sep 30, 2010 at 3:08 PM, Samuel Williams
> <space.ship.traveller at gmail.com> wrote:
>> Hi,
>>
>> I might just be doing something stupid, but when I do
>>
>> $ cmake -DCMAKE_INSTALL_PREFIX=/usr/local/llvm-2.8 -DCMAKE_BUILD_TYPE=Release ..
>> $ sudo make install
>>
>> I don't get the expected headers in
>> /usr/local/llvm-2.8/include/llvm
>>
>> It is simply an empty directory.
>>
>> What am I doing wrong? This is on Mac OS X, CMake 2.8+
>
> What version or CMake are you using exactly? Did you build it, or did
> you download the binary from cmake.org? What version of Mac OS X?
> (including patch level)
>
> Also, could you please try to replace
>
> install(DIRECTORY include/
> DESTINATION include
>
> with
>
> install(DIRECTORY include
> DESTINATION include
>
> ? (no slash after 'include')
>
> --
> Pau Garcia i Quiles
> http://www.elpauer.org
> (Due to my workload, I may need 10 days to answer)
More information about the llvm-dev
mailing list