View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0013196CMakeCMakepublic2012-05-05 22:332012-10-01 13:22
Reportersigma 
Assigned ToBrad King 
PrioritynormalSeverityminorReproducibilityalways
StatusclosedResolutionfixed 
Platform64bitOSWindowsOS Version7
Product VersionCMake 2.8.8 
Target VersionCMake 2.8.9Fixed in VersionCMake 2.8.9 
Summary0013196: Visual Studio missing Header Files if property PUBLIC_HEADER is set
DescriptionIf 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?





TagsNo tags attached.
Attached Files

 Relationships

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

Fixed:

 http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=470f39cf [^]
(0031122)
David Cole (manager)
2012-10-01 13:22

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

 Issue History
Date Modified Username Field Change
2012-05-05 22:33 sigma New Issue
2012-05-07 15:54 Brad King Note Added: 0029415
2012-05-07 15:54 Brad King Assigned To => Brad King
2012-05-07 15:54 Brad King Status new => resolved
2012-05-07 15:54 Brad King Resolution open => fixed
2012-05-07 15:54 Brad King Fixed in Version => CMake 2.8.9
2012-05-07 15:54 Brad King Target Version => CMake 2.8.9
2012-10-01 13:22 David Cole Note Added: 0031122
2012-10-01 13:22 David Cole Status resolved => closed


Copyright © 2000 - 2018 MantisBT Team