[CMake] Bad source directory?

felix jeneau felix_jeneau at hotmail.com
Mon Jul 18 13:04:44 EDT 2011


Thanks for the link -- it at least tells me about the error message that I'm receiving.  The problem is that I haven't set 'CONF=Release' as part of any directory path.  CONF=Release seems to be a configuration flag.  I'm thinking that it's supposed to be getting added to the command line like <source> <config>, but instead is getting added as <source><config>(no space).  In NetBeans, whenever I change the project configuration, I can see this change. (ie. setting project config to "debug" results in a source directory error of C:/Development/OgreTut/CONF=Debug)
 
I cannot find anywhere in the Netbeans configuration where a custom command line has been specified, so I'm at a loss as to how to debug it.  The most I could manage was to debug the CMakeLists.txt file with a bunch of 'message' lines spitting out each variable being used.  Is there an easy way to see the full CMake command that is actually being executed?
 

> Date: Wed, 13 Jul 2011 16:56:44 -0400
> Subject: Re: [CMake] Bad source directory?
> From: david.cole at kitware.com
> To: felix_jeneau at hotmail.com
> CC: cmake at cmake.org
> 
> It looks like OgreTut must have a subdirectory named CONF=Release.
> 
> Which is unfortunate, because the fix for this bug:
> 
> http://public.kitware.com/Bug/view.php?id=11689
> 
> simply disallows "=" characters in the source directory names.
> 
> I'm afraid the only solution here is to rename that directory. You
> could possibly try an older version of CMake to see if you can get it
> to generate a build system that works despite the "=" character, but
> the notes in that bug report make it seem unlikely to work with any
> "make"...
> 
> 
> HTH,
> David
> 
> 
> On Wed, Jul 13, 2011 at 4:02 PM, felix jeneau <felix_jeneau at hotmail.com> wrote:
> > Hello to all,
> >
> > I'm trying to use CMake with Netbeans 6.9.  I'm working with Ogre3D and they
> > provided a CMakeLists.txt file.  Everything works fine via cmake-gui.exe
> > (CMake v2.8), but when I attempt to build my project in Netbeans, it spits
> > out:
> >
> > CMake Error:
> >   The path to the source directory:
> >     C:/Development/OgreTut/CONF=Release
> >   contains unsupported character '='.
> >   Please use a different source directory name.
> >
> > I've scoured the config files and CMake files that were generated, but none
> > of them seem to have a reference to this.  I believe it's something as
> > simple as a space missing, but I cannot locate where to set this.  The other
> > possibility is that "CONF=Release" is supposed to just be "Release," but
> > again, I can find no reference to this.  I'm not sure if CONF=Release is on
> > the Netbeans or the CMake side.
> >
> > Any ideas?
> >
> > thanks,
> >
> > Felix
> >
> > _______________________________________________
> > 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
> >
 		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20110718/dd9c14c1/attachment.htm>


More information about the CMake mailing list