Ok, I'll wait for 2.8.4 version. Do you have any idea about when it's
gonna be released? Thanks David Cole ha scritto: This has already been entered in the bug tracker as: http://public.kitware.com/Bug/view.php?id=11404 and http://public.kitware.com/Bug/view.php?id=10652I will link the bug tracker entry for 11404 to this email thread on the mailing list archive. Thanks, David On Thu, Dec 16, 2010 at 7:18 AM, Andrea Galeazzi <galea...@korg.it> wrote:I make this very simple project in order to reproduce a possible bug: cmake_minimum_required(VERSION 2.8) project(HelloLib) set(SOURCES ./sayHello.cpp ./fileToExclude.c ) set_source_files_properties( ./fileToExclude.c PROPERTIES HEADER_FILE_ONLY TRUE) add_library(HelloLib STATIC ${SOURCES}) When I try to generate a VS2010 project, it produces an invalid XML. In particular it generates the following section: <ItemGroup> <ClCompile Include="..\sayHello.cpp" /> <ClInclude Include="..\fileToExclude.c"> <CompileAs Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">CompileAsC</CompileAs> <CompileAs Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">CompileAsC</CompileAs> <CompileAs Condition="'$(Configuration)|$(Platform)'=='MinSizeRel|Win32'">CompileAsC</CompileAs> <CompileAs Condition="'$(Configuration)|$(Platform)'=='RelWithDebInfo|Win32'">CompileAsC</CompileAs> </ClCompile> </ItemGroup> It seems that CMake get confused when it has to merge the HEADER_FILE_ONLY property with some other informations like CompileAS etc.... In fact when I change the file extension from ./sayHello.cpp to ./sayHello.c everything works fine. A similar problem happens when I try to specify additional includes: set_source_files_properties(./fileToExclude.c PROPERTIES COMPILE_FLAGS "-IW:\\myPath") The same CMakeLists.txt works fine for Eclipse and MinGW makefile as target. I currently use the last version of CMake (2.8.3) Let me know if it's an actual bug or if I make some mistakes. _______________________________________________ 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://www.cmake.org/mailman/listinfo/cmake_______________________________________________ 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://www.cmake.org/mailman/listinfo/cmake __________ Informazioni da ESET NOD32 Antivirus, versione del database delle firme digitali 5707 (20101216) __________ Il messaggio è stato controllato da ESET NOD32 Antivirus. www.nod32.it |
_______________________________________________ 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://www.cmake.org/mailman/listinfo/cmake