[CMake] CMake 2.8.10 available for download

2012-10-31 Thread David Cole
On behalf of myself, Ken, Bill, Brad, Alex, Eike, Steve, Eric, Zach, Ben and the rest of the CMake team from all around the world, we are pleased to announce that CMake 2.8.10 is now available for download at: http://www.cmake.org/files/v2.8/?C=M;O=D It is also available from the usual download

Re: [CMake] How to use file(WRITE... to write the literal string $'\r' to a file

2012-10-31 Thread David Cole
The only character you need to escape in the whole sequence is the backslash. You only have to escape a $ if it precedes a { to disambiguate from a variable dereference. This works for me: $ cat w.cmake file(WRITE "w.txt" "$'\\r'") $ cmake -P w.cmake $ cat w.txt $'\r' HTH, David On Wed, Oc

Re: [CMake] How to use file(WRITE... to write the literal string $'\r' to a file

2012-10-31 Thread Matthew Woehlke
On 2012-10-31 19:34, Alan W. Irwin wrote: After a lot of thrashing around I finally discovered that file(WRITE "\$""'""\\r""'") worked to write the literal string $'\r' to a file, i.e, so that the od -a result was $ ' \ r ' Is there an easier way to write this literal string to a f

[CMake] How to use file(WRITE... to write the literal string $'\r' to a file

2012-10-31 Thread Alan W. Irwin
After a lot of thrashing around I finally discovered that file(WRITE "\$""'""\\r""'") worked to write the literal string $'\r' to a file, i.e, so that the od -a result was $ ' \ r ' Is there an easier way to write this literal string to a file that I missed? Alan __

Re: [CMake] Should automoc automatically add CMAKE_CURRENT_BINARY_DIR to the include_directories?

2012-10-31 Thread Stephen Kelly
David Doria wrote: > When using automoc, I still have to do: > > include_directories(${CMAKE_CURRENT_BINARY_DIR}) > > so that the compiler can find the MOCed files that get created in the > build directory. Should this be done automatically so there is one > less thing the user has to worry abou

Re: [CMake] JOM Makefile generation issue

2012-10-31 Thread Laszlo Papp
I think it is my stupidity again as usual. :D $myrepository/tools/bin/cl.exe caused it because that was found due to a wrong PATH handling. I have inserted that before the rest instead of appending. The local cl.exe was preferred from the repository and cmake seems to have been unhappy about that

Re: [CMake] JOM Makefile generation issue

2012-10-31 Thread Bill Hoffman
On 10/31/2012 1:07 PM, Laszlo Papp wrote: Does CMake work from the command line without python on a simple project? No. Does it work with nmake or any other generators? No. Laszlo What is in CMakeError.log and CMakeOutput.log? -- Bill Hoffman Kitware, Inc. 28 Corporate Drive Clifton Pa

Re: [CMake] JOM Makefile generation issue

2012-10-31 Thread Laszlo Papp
> Does CMake work from the command line without python on a simple project? No. > Does it work with nmake or any other generators? No. Laszlo -- Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-t

Re: [CMake] How to generate a STATIC Library using ExternalProject_Add

2012-10-31 Thread Marshall, Rob
I am not sure if the link worked correctly because the websocketpp symbols seem to be missing. When MyApp is linking in boost and websocketpp Linking CXX executable MyApp ../../lib/MyServer/libMyServer.a(MyServerWebsocketServer.cpp.o): In function `boost::shared_ptr::operator->() const': /MyDev

Re: [CMake] How to generate a STATIC Library using ExternalProject_Add

2012-10-31 Thread David Cole
Use the full path to the file libwebsocketpp.a in your target_link_libraries call instead of "websocketpp" HTH, David On Wed, Oct 31, 2012 at 11:51 AM, Marshall, Rob wrote: > Hi, > > > > I am using ExternalProject_Add to build websocketpp. > > The build is successful and libwebsocketpp.a is gen

[CMake] How to generate a STATIC Library using ExternalProject_Add

2012-10-31 Thread Marshall, Rob
Hi, I am using ExternalProject_Add to build websocketpp. The build is successful and libwebsocketpp.a is generated. But it appears to be generated as a "UTILITY" rather than a "STATIC". How can I configure ExternalProject_Add to build websocketapp as "STATIC"? When I try and link in websocketpp

Re: [CMake] JOM Makefile generation issue

2012-10-31 Thread Bill Hoffman
On 10/31/2012 6:19 AM, Laszlo Papp wrote: I have also tried to enable the --debug-trycompile, but did not help for me. This is the CMakeError.log: Can you back up a few steps? Does CMake work from the command line without python on a simple project? Does it work with nmake or any other genera

[CMake] modular builds / add_subdirectory for external directory / ExternalProject_Add / RHEL6

2012-10-31 Thread Derrick Karimi
Hello, I am trying to create a modular development environment. My goal is to have different source modules in separate source control projects. Sometimes there will be dependencies between these modules. I also will be scooping in 3rd party projects and placing some kind of wrapper build around

Re: [CMake] JOM Makefile generation issue

2012-10-31 Thread Laszlo Papp
I have also tried to enable the --debug-trycompile, but did not help for me. This is the CMakeError.log: Compilation of the C compiler identification source "CMakeCCompilerId.c" did not produce an executable in "C:/foobar/build/CMakeFiles/CompilerIdC". Compilation of the C compiler identification

Re: [CMake] Automoc for ui files?

2012-10-31 Thread Christian Ehrlicher
Am 31.10.2012 10:37, schrieb Rolf Eike Beer: Am , schrieb Andreas Pakulat: Hi, On Wed, Oct 31, 2012 at 12:02 AM, David Doria wrote: I just learned about automoc, and it is fantastic! I have been able to get rid of all of my manual QT4_WRAP_CPP calls. Is there a similar way to get rid of my Q

Re: [CMake] Automoc for ui files?

2012-10-31 Thread Rolf Eike Beer
Am , schrieb Andreas Pakulat: Hi, On Wed, Oct 31, 2012 at 12:02 AM, David Doria wrote: I just learned about automoc, and it is fantastic! I have been able to get rid of all of my manual QT4_WRAP_CPP calls. Is there a similar way to get rid of my QT4_WRAP_UI calls? They are equally as bulky t

Re: [CMake] JOM Makefile generation issue

2012-10-31 Thread Laszlo Papp
This is the python statement I am trying to execute on my Windows box just in case: subprocess.call(["cmake", "-GNMake Makefiles JOM", "-DCMAKE_MODULE_PATH=" + os.environ["CMAKE_MODULE_PATH"].replace("\\", "/"), os.path.pardir if len(sys.argv) == 1 else sys.argv[1]]) Laszlo On Tue, Oct 30, 2012

Re: [CMake] Automoc for ui files?

2012-10-31 Thread Andreas Pakulat
Hi, On Wed, Oct 31, 2012 at 12:02 AM, David Doria wrote: > I just learned about automoc, and it is fantastic! I have been able to > get rid of all of my manual QT4_WRAP_CPP calls. Is there a similar way > to get rid of my QT4_WRAP_UI calls? They are equally as bulky to write > out manually :) No