[CMake] External_Project and WIndows

2011-08-06 Thread Richard Offer
Hi, I'm trying to build Google protocol buffers as an external project on Windows and am hitting an issue with over assuming something is a path. I need to be able to call msbuild with options. (/p:Configuration=Debug), but cmake converts this to \p:Configuration=Debug before passing the string

[CMake] Embedding one project inside a second

2011-06-05 Thread Richard Offer
I have two distinct projects - A and B - each has its own subversion repository etc - they are quite independent. Project A is nw and needs to be built 32bit and itself comprises both in-house and third party code. The third party code is built using ExternalProject_Add() Project B is built 64b

[CMake] CTest fails to find test command : bug in use of FileExists() + suggested fix.

2010-08-14 Thread Richard Offer
One of my test cases needs sudo to run (its listening on privileged ports). If I add ADD_TEST( SERVER /usr/bin/sudo ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/Server${SUFFIX} --daemon ) CMake complains that it can¹t find sudo. [ d042 ] make test Running tests... Test project /Users/richard/BUILD

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

2010-08-02 Thread Richard Offer
) || (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" wrote: > > I¹m not using a

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

2010-08-01 Thread Richard Offer
> 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 wrote: >> >> One of my libraries has starte

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

2010-08-01 Thread Richard Offer
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

[CMake] Configuring targets & software that isn't yet built

2010-07-20 Thread Richard Offer
I have two targets (libssh2 and curl). Curl wants to know if libssh2 is installed during its configuration step. Of course it isn¹t at that point. I tried a naïve approach ­ adding a variable that curl uses to see if libssh2 is available (HAVE_LIBSSH2_H) into the cache. SET( HAVE_LIBSSH2_H 1 C

Re: [CMake] Install of library sub-project prior to building application

2009-06-17 Thread Richard Offer
On Wed, Jun 17, 2009 at 12:22 PM, Tyler Roscoe wrote: > > Note that CMake's INSTALL target (which runs the rules you define with > the install() command) isn't a "real" target so unfortunately you can't > do things like > >add_dependencies(INSTALL myLib1 ... mylibN) > > There is an request in

Re: [CMake] Install of library sub-project prior to building application

2009-06-17 Thread Richard Offer
On Wed, Jun 17, 2009 at 10:02 AM, Tyler Roscoe wrote: > On Wed, Jun 17, 2009 at 09:54:58AM -0700, Richard Offer wrote: > > However I need to run the install phase of Poco before the application > can > > link to the library - its the install phase of Poco that copies the

[CMake] Install of library sub-project prior to building application

2009-06-17 Thread Richard Offer
(probably a newbie question, but google didn't show anything relevant and answered) I have a project that includes a third party library (Poco), and then my application that links to it. Everything is built from a single top level CMakeLists.txt file. Poco is includes using add_subdirectory(), th