<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Ok, I'll wait for 2.8.4 version. Do you have any idea about when it's
gonna be released?<br>
Thanks<br>
<br>
David Cole ha scritto:
<blockquote
cite="midAANLkTi=J6-huQpCcSrSXBkMD39qwkzKgYDBbbwPKXRx2@mail.gmail.com"
type="cite">
<pre wrap="">This has already been entered in the bug tracker as:
<a class="moz-txt-link-freetext" href="http://public.kitware.com/Bug/view.php?id=11404">http://public.kitware.com/Bug/view.php?id=11404</a> and
<a class="moz-txt-link-freetext" href="http://public.kitware.com/Bug/view.php?id=10652">http://public.kitware.com/Bug/view.php?id=10652</a>
I 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 <a class="moz-txt-link-rfc2396E" href="mailto:Galeazzi@korg.it"><Galeazzi@korg.it></a> wrote:
</pre>
<blockquote type="cite">
<pre wrap="">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 <a class="moz-txt-link-abbreviated" href="http://www.kitware.com">www.kitware.com</a>
Visit other Kitware open-source projects at
<a class="moz-txt-link-freetext" href="http://www.kitware.com/opensource/opensource.html">http://www.kitware.com/opensource/opensource.html</a>
Please keep messages on-topic and check the CMake FAQ at:
<a class="moz-txt-link-freetext" href="http://www.cmake.org/Wiki/CMake_FAQ">http://www.cmake.org/Wiki/CMake_FAQ</a>
Follow this link to subscribe/unsubscribe:
<a class="moz-txt-link-freetext" href="http://www.cmake.org/mailman/listinfo/cmake">http://www.cmake.org/mailman/listinfo/cmake</a>
</pre>
</blockquote>
<pre wrap=""><!---->_______________________________________________
Powered by <a class="moz-txt-link-abbreviated" href="http://www.kitware.com">www.kitware.com</a>
Visit other Kitware open-source projects at <a class="moz-txt-link-freetext" href="http://www.kitware.com/opensource/opensource.html">http://www.kitware.com/opensource/opensource.html</a>
Please keep messages on-topic and check the CMake FAQ at: <a class="moz-txt-link-freetext" href="http://www.cmake.org/Wiki/CMake_FAQ">http://www.cmake.org/Wiki/CMake_FAQ</a>
Follow this link to subscribe/unsubscribe:
<a class="moz-txt-link-freetext" href="http://www.cmake.org/mailman/listinfo/cmake">http://www.cmake.org/mailman/listinfo/cmake</a>
__________ Informazioni da ESET NOD32 Antivirus, versione del database delle firme digitali 5707 (20101216) __________
Il messaggio è stato controllato da ESET NOD32 Antivirus.
<a class="moz-txt-link-abbreviated" href="http://www.nod32.it">www.nod32.it</a>
</pre>
</blockquote>
<br>
</body>
</html>