[CMake] How can I avoid the addition of Debug/Release to the link path?

2007-10-08 Thread Nico Galoppo
Hi, I add required libraries to my project with TARGET_LINK_LIBRARIES(target /path/to/library) I then generate Xcode projects, but they give me a warning that /path/to/Debug (or /path/to/Release) doesn't exist in the linker flag -L/path/to/{Debug,Release} (and fail because there are alongside li

Re: [CMake] RE: Cygwin cmake - Could not find CMAKE_ROOT

2007-10-08 Thread David Cole
I have reproduced this by executing these two lines in a cygwin shell: export PATH=/bin:$PATH cmake --version with cmake 2.4.7 It does not occur with cmake 2.4.3 or cmake 2.4.6 It probably occurs because cmake expects a directory structure of: bin doc man share (There are no doc, man and share d

Re: [CMake] RE: Cygwin cmake - Could not find CMAKE_ROOT

2007-10-08 Thread Bill Hoffman
Wheeler, Frederick W (GE, Research) wrote: David, /bin is before /usr/bin in my path. My .bashrc file was created so long ago, and changed so many times that it is impossible to know why this is so. I think there is something to all of this. The other day on a Mac, with a PATH issue,

RE: [CMake] RE: Cygwin cmake - Could not find CMAKE_ROOT

2007-10-08 Thread Wheeler, Frederick W (GE, Research)
David, /bin is before /usr/bin in my path. My .bashrc file was created so long ago, and changed so many times that it is impossible to know why this is so. I think the bigger issue here is that it is not forbidden to put /bin before /usr/bin in your path. For whatever reason, I'm sure a lot o

Re: [CMake] RE: Cygwin cmake - Could not find CMAKE_ROOT

2007-10-08 Thread Miguel A. Figueroa-Villanueva
On 10/8/07, Wheeler, Frederick W (GE, Research) <[EMAIL PROTECTED]> wrote: > CMake List: > > Amitha and I figured out that I can run cygwin cmake if and only if I > use the full /usr/bin/cmake path. Neither /bin/cmake or cmake work. > This is good enough for me. I just want to report this odd beh

Re: [CMake] RE: Cygwin cmake - Could not find CMAKE_ROOT

2007-10-08 Thread David Cole
H Well my cygwin PATH starts with: /usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin Why would the cmake in your "/bin" be chosen over the one in "/usr/bin"...? What happens when you type: which cmake What is the value of your PATH environment variable and how did it get that way...? On 10

RE: [CMake] RE: Cygwin cmake - Could not find CMAKE_ROOT

2007-10-08 Thread Wheeler, Frederick W (GE, Research)
It looks like the exact same cmake is in both /bin and /usr/bin % md5sum /bin/cmake.exe /usr/bin/cmake.exe af465bc5ad9e6157a4898c476bfe62a3 */bin/cmake.exe af465bc5ad9e6157a4898c476bfe62a3 */usr/bin/cmake.exe This would be expected given how cygwin sets up these directories: http://cygwin.co

Re: [CMake] RE: Cygwin cmake - Could not find CMAKE_ROOT

2007-10-08 Thread David Cole
Sounds like the cmake located at "/bin/cmake" is stale/old, but it's in your path before the one from /usr/bin... How did the one at "/bin/cmake" get there? Maybe just deleting the cmake-related files under /bin and just using the officially installed ones in /usr/bin is the solution? On 10/8/0

Re: [CMake] Supported configurations with Visual Studio builds

2007-10-08 Thread Joshua Jensen
Sylvain Benner wrote: What about the debug/optimized flags for TARGET_LINK_LIBARIES()? Do these work right now by taking advantage of the fact that Debug, Release, MinSizeRel, and RelWithDebInfo are hardcoded? We had to "upgrade" the cmTarget sources to add the new configuration type and then

[CMake] parenthesized booleans?

2007-10-08 Thread Brandon Van Every
Does CMake allow for statements like IF((var1 OR var2) AND (var3 OR var4)) or any similar syntax? When I try it in CMake 2.4.7, I get parse errors. SET(istrue "yadda") SET(isfalse "FALSE") IF((istrue AND istrue) OR (isfalse AND isfalse)) MESSAGE("it works") ELSE((istrue AND istrue) OR (isfalse

[CMake] RE: Cygwin cmake - Could not find CMAKE_ROOT

2007-10-08 Thread Wheeler, Frederick W (GE, Research)
CMake List: Amitha and I figured out that I can run cygwin cmake if and only if I use the full /usr/bin/cmake path. Neither /bin/cmake or cmake work. This is good enough for me. I just want to report this odd behavior. Fred % cmake --version CMake Error: Could not find CMAKE_ROOT !!! CMake ha

Re: [CMake] Calling cmake from within cmake.

2007-10-08 Thread Sylvain Benner
BTW you don't need the ARGS keyword in EXEC_PROGRAM, ADD_CUSTOM_COMMAND, or ADD_CUSTOM_TARGET. It's correct but archaic. ARGS is not needed with EXECUTE_PROCESS, not EXEC_PROGRAM ; ) --Sylvain ___ CMake mailing list CMake@cmake.org http://www.

Re: [CMake] Calling cmake from within cmake.

2007-10-08 Thread Sylvain Benner
In the mean time I'm doing, EXEC_PROGRAM(${CMAKE_COMMAND} ${CONFIG_SUBDIR}/${CONFIG} ARGS -G "NMake Makefiles" -DCMAKE_BUILD_TYPE=${CONFIG} -DBUILD_SUBTREE=1 ${CMAKE_HOME_DIRECTORY} ) However that doesn't work because the double quotes aren't escaped. How do I escape q

Re: [CMake] Calling cmake from within cmake.

2007-10-08 Thread Brandon Van Every
On 10/8/07, Josef Karthauser <[EMAIL PROTECTED]> wrote: > > EXEC_PROGRAM(${CMAKE_COMMAND} ${CONFIG_SUBDIR}/${CONFIG} > ARGS -G "NMake Makefiles" -DCMAKE_BUILD_TYPE=${CONFIG} > -DBUILD_SUBTREE=1 > ${CMAKE_HOME_DIRECTORY} > ) > > However that doesn't work because the double qu

Re: [CMake] Calling cmake from within cmake.

2007-10-08 Thread Sylvain Benner
However that doesn't work because the double quotes aren't escaped. How do I escape quotes in cmake? Like in any other strings -> \" SET(foo "\"Hello\"") will set foo with the value "Hello". --Sylvain ___ CMake mailing list CMake@cmake.org ht

RE: [CMake] Calling cmake from within cmake.

2007-10-08 Thread Josef Karthauser
> -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf > Of Josef Karthauser > Sent: 08 October 2007 16:36 > To: cmake@cmake.org > Subject: [CMake] Calling cmake from within cmake. > > I want to recursively call cmake from a cmakelists.txt file to create > bui

[CMake] Simple Qt 3 Widget Example

2007-10-08 Thread Jacob Foshee
To whom it may concern: Here is an example for building a Qt 3 widget as a lib (with CMake taking care of all the moc and uic nonsense). You will only need the .ui file (which you can create in the Qt Designer) and the following CMakeLists.txt: # # # # # # # # # # # # # # # # # # # # # # # # # #

Re: [CMake] Supported configurations with Visual Studio builds

2007-10-08 Thread Sylvain Benner
What about the debug/optimized flags for TARGET_LINK_LIBARIES()? Do these work right now by taking advantage of the fact that Debug, Release, MinSizeRel, and RelWithDebInfo are hardcoded? Also, judging by code in cmLocalVisualStudio7Generator.cxx any custom build solutions that you would adde

Re: [CMake] Supported configurations with Visual Studio builds

2007-10-08 Thread Philip Lowman
Josef Karthauser wrote: >>> Is this a bug or a feature, does anyone know? If I rip out the >> checks in cmGlobalVisualStudio7Generator:: GenerateConfigurations is >> anything going to break? >>> >> If you rip out this I think you'll have an error with TRY_COMPILE. (be >> aware to delete your CMake

[CMake] Calling cmake from within cmake.

2007-10-08 Thread Josef Karthauser
I want to recursively call cmake from a cmakelists.txt file to create build directories for other projects. I'm sure I saw something in the docs that suggested a neat way of doing it that didn't involve executing cmake explicitly as an external command, but I can't find it now I look again. Can a

Re: [CMake] Excluding ALL_BUILD and ZERO_CHECK

2007-10-08 Thread Bill Hoffman
Paul Dean wrote: Is it possible to exclude ALL_BUILD and ZERO_CHECK for the project? It is technically possible to remove ALL_BUILD by hacking the c++. It is not possible to remove ZERO_CHECK as it provides functionality

[CMake] Running unit test executable

2007-10-08 Thread Torsten Martinsen
I am trying to get CMake to run my CppUnit tests automatically after building from within Visual Studio .NET 2003. Looking at http://www.cmake.org/Wiki/CMake_FAQ#How_do_I_generate_an_executable.2C_t hen_use_the_executable_to_generate_a_file.3F, I thought this would do the trick (the example is sim

[CMake] Excluding ALL_BUILD and ZERO_CHECK

2007-10-08 Thread Paul Dean
Is it possible to exclude ALL_BUILD and ZERO_CHECK for the project? _ Boo! Scare away worms, viruses and so much more! Try Windows Live OneCare! http://onecare.live.com/standard/en-us/purchase/trial.aspx?s_cid=wl_hotmailnews__

Re: [CMake] Building Subdirectories For A Single Target

2007-10-08 Thread Mike Jackson
If I am understanding you correct, you would like a CMake file in each of the subdirectories that lists the source files in that subdirectory that should be included in the build? Try the following: In your top level CMakeLists.txt file-- SET (PROJECT_SOURCE_DIR ${CMAKE_CURRENT_SOURC

[CMake] Building Subdirectories For A Single Target

2007-10-08 Thread Tim
My project is a shared library. I just moved the project over to CMake from autotools. The sources for the target is divided up into several subdirectories(which also contain sources in subdirectories). I need to be able to build all the sources recursively and have them all linked into the same ta