[CMake] Source files missing in generated NMakefile ( Visual Studio 2008)

Richard Offer richard at whitequeen.com
Mon Aug 2 12:33:25 EDT 2010


The following change to the 2.8.0 code did NOT fix the problem


diff --git a/Source/kwsys/System.c b/Source/kwsys/System.c
index 5d178bf..99e01cd 100644
--- a/Source/kwsys/System.c
+++ b/Source/kwsys/System.c
@@ -84,7 +84,7 @@ static int kwsysSystem_Shell__CharNeedsQuotesOnUnix(char
c)
 static int kwsysSystem_Shell__CharNeedsQuotesOnWindows(char c)
 {
   return ((c == '\'') || (c == '#') || (c == '&') ||
-          (c == '<') || (c == '>') || (c == '|') || (c == '^'));
+          (c == '<') || (c == '>') || (c == '|') || (c == '^')||(c ==':'));
 }


I used the 2.8.0 sources rather than HEAD since HEAD couldn't seem to find
my OpenSSL libraries.....


Richard.


On 8/1/10 7:31 PM, "Richard Offer" <richard at whitequeen.com> wrote:

> 
> I¹m not using any External Projects (#10735), but I can see that its somewhat
> similar.
> 
> Although bizzaringly this appears to be a single file (so far) in one target,
> the single CMakeLists file is ~100k with ~20 targets, and its successfully
> built the rest of Poco (and my own stuff).
> 
> 
> I¹ll make the suggested change and get back to you...easier than trying to rip
> apart 100k lines of code to remove all the private references....
> 
> 
> Thanks,
> 
> Richard.
> 
> 
> On 8/1/10 7:08 PM, "David Cole" <david.cole at kitware.com> wrote:
> 
>> Possibly related to these bugs...?
>> 
>> http://public.kitware.com/Bug/view.php?id=9963
>> http://public.kitware.com/Bug/view.php?id=10735
>> 
>> This is just a guess because the symptom sounds similar...
>> 
>> To confirm (or deny) can you send along a zip file of a project that
>> demonstrates the problem?
>> 
>> Does the problem still exist in CMake 2.8.2?
>> 
>> Or, if you're able to, try a build of CMake from git with the change
>> mentioned in bug #10735 and let me know if that fixes it.
>> 
>> 
>> Thanks,
>> David
>> 
>> 
>> On Sun, Aug 1, 2010 at 6:53 PM, Richard Offer <richard at whitequeen.com> wrote:
>>> 
>>> One of my libraries has started to fail to link ­ due to unresolved symbols,
>>> because the TCPServerDispatcher class is not being linked. It is in fact not
>>> even being compiled.
>>> 
>>> Its not mentioned even in the generated NMakefile.
>>> 
>>> I¹ve deleted the entire build directory and rebuilt from scratch with no
>>> effect.
>>> 
>>> Other platforms (OS X and Linux don¹t seem to have the issue).
>>> 
>>> This is with cmake 2.8.0
>>> 
>>> 
>>> The only different thing about this build is that I¹m using source from a
>>> different drive letter (z: - network share) while the output directory is on
>>> c:
>>> 
>>> 
>>> c:\Users\Richard\Desktop\BUILD>grep TCPServer Makefile
>>> ...
>>>         @echo ... lib/poco-1.3.6p2-all/Net/src/TCPServer.obj
>>>         @echo ... lib/poco-1.3.6p2-all/Net/src/TCPServer.i
>>>         @echo ... lib/poco-1.3.6p2-all/Net/src/TCPServer.s
>>>         @echo ... lib/poco-1.3.6p2-all/Net/src/TCPServerConnection.obj
>>>         @echo ... lib/poco-1.3.6p2-all/Net/src/TCPServerConnection.i
>>>         @echo ... lib/poco-1.3.6p2-all/Net/src/TCPServerConnection.s
>>>         @echo ...
>>> lib/poco-1.3.6p2-all/Net/src/TCPServerConnectionFactory.obj
>>>         @echo ... lib/poco-1.3.6p2-all/Net/src/TCPServerConnectionFactory.i
>>>         @echo ... lib/poco-1.3.6p2-all/Net/src/TCPServerConnectionFactory.s
>>>         @echo ... lib/poco-1.3.6p2-all/Net/src/TCPServerParams.obj
>>>         @echo ... lib/poco-1.3.6p2-all/Net/src/TCPServerParams.i
>>>         @echo ... lib/poco-1.3.6p2-all/Net/src/TCPServerParams.s
>>> 
>>> c:\Users\Richard\Desktop\BUILD>z:
>>> 
>>> z:\Shared\Proj\src\VIP>grep TCPServer CMakeLists.txt
>>>   ${POCO_TOP}/Net/src/TCPServer.cpp
>>>   ${POCO_TOP}/Net/src/TCPServerConnection.cpp
>>>   ${POCO_TOP}/Net/src/TCPServerConnectionFactory.cpp
>>>   ${POCO_TOP}/Net/src/TCPServerDispatcher.cpp
>>>   ${POCO_TOP}/Net/src/TCPServerParams.cpp
>>> 
>>> 
>>> Thanks,
>>> 
>>> 
>>> Richard.
>>> 
>>> 
>>> _______________________________________________
>>> Powered by www.kitware.com <http://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
>> 
>> 
> 




More information about the CMake mailing list