MantisBT - CMake
View Issue Details
0013196CMakeCMakepublic2012-05-05 22:332012-10-01 13:22
sigma 
Brad King 
normalminoralways
closedfixed 
64bitWindows7
CMake 2.8.8 
CMake 2.8.9CMake 2.8.9 
0013196: Visual Studio missing Header Files if property PUBLIC_HEADER is set
If I set the PUBLIC_HEADER property to a library target, these files will then not appear in the visual studio (VS2010) project. For example:

set(HEADERS src/file1.h src/file2.h src/file3.h )
set(SOURCES src/file1.cpp src/file2.cpp)

ADD_LIBRARY(proj SHARED ${HEADERS} ${SOURCES} )

SET_TARGET_PROPERTIES( proj
            PROPERTIES
            PUBLIC_HEADER "${HEADERS}"
            )


Then under the "Header Files" filter in VS the headers are missing. If I switch my cmake to 2.8.7 it works as expected. If I remove the double quotes from the PUBLIC_HEADER value, so it reads: PUBLIC_HEADER ${HEADERS}, then the first file in the header's list goes missing in 2.8.8.

Could anyone please fix this?





No tags attached.
Issue History
2012-05-05 22:33sigmaNew Issue
2012-05-07 15:54Brad KingNote Added: 0029415
2012-05-07 15:54Brad KingAssigned To => Brad King
2012-05-07 15:54Brad KingStatusnew => resolved
2012-05-07 15:54Brad KingResolutionopen => fixed
2012-05-07 15:54Brad KingFixed in Version => CMake 2.8.9
2012-05-07 15:54Brad KingTarget Version => CMake 2.8.9
2012-10-01 13:22David ColeNote Added: 0031122
2012-10-01 13:22David ColeStatusresolved => closed

Notes
(0029415)
Brad King   
2012-05-07 15:54   
Fixed:

 http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=470f39cf [^]
(0031122)
David Cole   
2012-10-01 13:22   
Closing resolved issues that have not been updated in more than 4 months.