The following issue has been SUBMITTED.
======================================================================
http://public.kitware.com/Bug/view.php?id=13196
======================================================================
Reported By: sigma
Assigned To:
======================================================================
Project: CMake
Issue ID: 13196
Category: CMake
Reproducibility: always
Severity: minor
Priority: normal
Status: new
======================================================================
Date Submitted: 2012-05-05 22:33 EDT
Last Modified: 2012-05-05 22:33 EDT
======================================================================
Summary: Visual Studio missing Header Files if property
PUBLIC_HEADER is set
Description:
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?
======================================================================
Issue History
Date Modified Username Field Change
======================================================================
2012-05-05 22:33 sigma New Issue
======================================================================
--
Powered by www.kitware.com
Visit other Kitware open-source projects at
http://www.kitware.com/opensource/opensource.html
Please keep messages on-topic and check the CMake FAQ at:
http://www.cmake.org/Wiki/CMake_FAQ
Follow this link to subscribe/unsubscribe:
http://public.kitware.com/cgi-bin/mailman/listinfo/cmake-developers