View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0013177CMakeCMakepublic2012-04-30 16:142013-01-09 10:58
ReporterBraden McDaniel 
Assigned ToBrad King 
Platformx86_64OSMac OS XOS Version10.7.3
Product VersionCMake 2.8.7 
Target VersionCMake 2.8.9Fixed in VersionCMake 2.8.9 
Summary0013177: File matching patterns not functional when installing headers
DescriptionIn the course of trying to build mysql-c-connector-6.0.2, I found that the following directive does *not* result in header files being installed by "make install":

        DESTINATION "include"

Changing to this results in "make install" installing the headers:

        DESTINATION "include")
Additional InformationI was unable to reproduce this problem on Fedora 16 Linux. However, it happens consistently on Mac OS X 10.7.3 using MacPorts CMake.
TagsNo tags attached.
Attached Files

has duplicate 0010366closedBrad King install(DIRECTORY ... ) FILES_MATCHING does not work on MacOS 

Brad King (manager)
2012-05-01 14:22

I cannot reproduce this, at least on OS X 10.6:

$ sw_vers
ProductName: Mac OS X
ProductVersion: 10.6.6
BuildVersion: 10J567

$ /opt/local/bin/cmake --version
cmake version 2.8.7

$ cat ../CMakeLists.txt
cmake_minimum_required(VERSION 2.8)
project(Issue13177 C)
install(DIRECTORY "include/"
        DESTINATION "include"

$ find ../include -type f

$ /opt/local/bin/cmake .. -DCMAKE_INSTALL_PREFIX="$(pwd)/prefix"

$ make install
Install the project...
-- Install configuration: ""
-- Installing: .../prefix/include
-- Installing: .../prefix/include/a.h
-- Installing: .../prefix/include/b.h
-- Installing: .../prefix/include/c.H

Note that even case-insensitive matching works. Also, our test suite contains almost the exact same case:;a=blob;f=Tests/SimpleInstall/CMakeLists.txt;hb=v2.8.7#l272 [^]

and passes on all OS X nightly test machines.

Please provide a minimal but complete source tarball that demonstrates the problem. Also please try to reproduce this with an upstream CMake to ensure MacPorts patches do not interfere.
Matthew McCormick (reporter)
2012-06-11 13:46

This bug was also encountered with DCMTK. For more information, see [^] [^]
Matthew McCormick (reporter)
2012-06-11 13:50

Also note from reports on DCMTK thread: the command appears to behave correctly with CMake 2.8.2 from Debian.
Brad King (manager)
2012-06-11 14:02

Re 0013177:0029660: As stated in 0013177:0029383 the command also appears to work as documented on ALL our nightly testing machines, and on my machines. It is a tested feature.

There must be something obscure about the conditions that lead to the failure.
Brad King (manager)
2012-06-12 08:25

Re 0013177:0029659: From discussion with the reporter of the problem in DCMTK it happens on all their OS X 10.7 machines.
Brad King (manager)
2012-06-13 08:59

I discovered the problem occurs when the install source directory is a mixed-case file path on a case *sensitive* filesystem on a Mac. This fixes it:;a=commitdiff;h=a41557a2 [^]
Robert Maynard (manager)
2013-01-09 10:58

Closing resolved issues that have not been updated in more than 4 months.

 Issue History
Date Modified Username Field Change
2012-04-30 16:14 Braden McDaniel New Issue
2012-05-01 14:22 Brad King Note Added: 0029383
2012-06-11 13:46 Matthew McCormick Note Added: 0029659
2012-06-11 13:50 Matthew McCormick Note Added: 0029660
2012-06-11 14:02 Brad King Note Added: 0029661
2012-06-12 08:25 Brad King Note Added: 0029665
2012-06-13 08:59 Brad King Note Added: 0029682
2012-06-13 08:59 Brad King Assigned To => Brad King
2012-06-13 08:59 Brad King Status new => resolved
2012-06-13 08:59 Brad King Resolution open => fixed
2012-06-13 08:59 Brad King Fixed in Version => CMake 2.8.9
2012-06-13 08:59 Brad King Target Version => CMake 2.8.9
2012-08-13 15:40 Brad King Relationship added has duplicate 0010366
2013-01-09 10:58 Robert Maynard Note Added: 0032057
2013-01-09 10:58 Robert Maynard Status resolved => closed

Copyright © 2000 - 2018 MantisBT Team