[CMake] output a string instead of a list

2006-06-12 Thread Brandon J. Van Every
This is driving me nuts. I have a list of compiler flags: GET_DIRECTORY_PROPERTY(EXCESSIVE_CPPFLAGS_LIST DIRECTORY ${Chicken_SOURCE_DIR} DEFINITIONS ) I want to turn this list into a string with NO SEMICOLONS. I need to shove this into a .scm file and semicolons won't be appreciated. I kee

Re: [CMake] output a string instead of a list

2006-06-12 Thread Peter Kümmel
Brandon J. Van Every wrote: > This is driving me nuts. I have a list of compiler flags: > > GET_DIRECTORY_PROPERTY(EXCESSIVE_CPPFLAGS_LIST > DIRECTORY ${Chicken_SOURCE_DIR} > DEFINITIONS > ) > > I want to turn this list into a string with NO SEMICOLONS. I need to > shove this into a .scm file

Re: [CMake] output a string instead of a list

2006-06-12 Thread Brandon J. Van Every
Peter Kümmel wrote: Brandon J. Van Every wrote: This is driving me nuts. I have a list of compiler flags: GET_DIRECTORY_PROPERTY(EXCESSIVE_CPPFLAGS_LIST DIRECTORY ${Chicken_SOURCE_DIR} DEFINITIONS ) I want to turn this list into a string with NO SEMICOLONS. I need to shove th

Re: [CMake] output a string instead of a list

2006-06-12 Thread Peter Kümmel
Peter Kümmel wrote: > Brandon J. Van Every wrote: >> This is driving me nuts. I have a list of compiler flags: >> >> GET_DIRECTORY_PROPERTY(EXCESSIVE_CPPFLAGS_LIST >> DIRECTORY ${Chicken_SOURCE_DIR} >> DEFINITIONS >> ) >> >> I want to turn this list into a string with NO SEMICOLONS. I need to >

Re: [CMake] output a string instead of a list

2006-06-12 Thread Brandon J. Van Every
Peter Kümmel wrote: Peter Kümmel wrote: Brandon J. Van Every wrote: This is driving me nuts. I have a list of compiler flags: GET_DIRECTORY_PROPERTY(EXCESSIVE_CPPFLAGS_LIST DIRECTORY ${Chicken_SOURCE_DIR} DEFINITIONS ) I want to turn this list into a string wit

Re: [CMake] output a string instead of a list

2006-06-12 Thread Peter Kümmel
Brandon J. Van Every wrote: > Peter Kümmel wrote: >> Peter Kümmel wrote: >> >>> Brandon J. Van Every wrote: >>> This is driving me nuts. I have a list of compiler flags: GET_DIRECTORY_PROPERTY(EXCESSIVE_CPPFLAGS_LIST DIRECTORY ${Chicken_SOURCE_DIR} DEFINITIONS

Re: [CMake] output a string instead of a list

2006-06-12 Thread Brandon J. Van Every
Peter Kümmel wrote: I had recently a similar problem, until I found this solution: SET(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -Zi -wd4996 -wd4800") The point was to enclose ALSO the ${CMAKE_CXX_FLAGS_DEBUG} into the two quotes. Hope this is a better hint. Peter Bah. I finally

Re: Re: [CMake] output a string instead of a list

2006-06-12 Thread Alexander Neundorf
>  Original-Nachricht > Datum: Mon, 12 Jun 2006 03:00:54 -0700 > Von: "Brandon J. Van Every" <[EMAIL PROTECTED]> > An: cmake > Betreff: Re: [CMake] output a string instead of a list >  > Peter Kümmel wrote: > > > > I had recently a similar problem, until I found this solution: >

Re: [CMake] output a string instead of a list

2006-06-12 Thread Brandon J. Van Every
Alexander Neundorf wrote:  Von: "Brandon J. Van Every" <[EMAIL PROTECTED]> Bah. I finally found the problem. All of my string handling was correct. I was passing arguments to a CMake script using INCLUDE(${CMAKE_CURRENT_BINARY_DIR}/vars.cmake)

Re: Re: [CMake] output a string instead of a list

2006-06-12 Thread Alexander Neundorf
>  Original-Nachricht > Datum: Mon, 12 Jun 2006 03:13:27 -0700 > Von: "Brandon J. Van Every" <[EMAIL PROTECTED]> > An: cmake > Betreff: Re: [CMake] output a string instead of a list >  > Alexander Neundorf wrote: > > > > > >  Von: "Brandon J. Van Every" <[EMAIL PROTECTED]

[CMake] undefined reference to memcpy ?

2006-06-12 Thread Alexander Neundorf
Hi, I have three libraries here, libA, libB and libC. All three are linked as shared libs. libB and libC are written in C++ but have a C interface, libA is completely C. When trying to link libC, which links to libB, which links to libA I get undefined references to memcpy (but only from one of

[CMake] is cmake -P script.cmake -DSOMEVAR=foo supposed to work?

2006-06-12 Thread Brandon J. Van Every
Alexander Neundorf wrote: You mean cmake -P myscript.cmake -DSOMEVAR=foo ? This works, it is the same as when you use -D when calling cmake to configure your project. It should really work. I use it this way and the only issues I had were wit

Re: [CMake] is cmake -P script.cmake -DSOMEVAR=foo supposed to work?

2006-06-12 Thread Alexander Neundorf
> Von: "Brandon J. Van Every" <[EMAIL PROTECTED]> >  > Alexander Neundorf wrote: > > > > > > You mean cmake -P myscript.cmake -DSOMEVAR=foo ? > This > > > works, it is the > > > > > same as when you use -D when calling cmake to configure your > > > > project. It

Re: [CMake] is cmake -P script.cmake -DSOMEVAR=foo supposed to work?

2006-06-12 Thread Brandon J. Van Every
Alexander Neundorf wrote:  Von: "Brandon J. Van Every" <[EMAIL PROTECTED]>   Well it doesn't work on my Windows command prompt.  Here's my testscript: MESSAGE("${DEPRESSING}") and here's my command line: E:\devel>cmake -P bwah.cmake -DDEPRESSING=killme E:\devel>

Re: [CMake] output a string instead of a list

2006-06-12 Thread Brandon J. Van Every
Brandon J. Van Every wrote: Peter Kümmel wrote: I had recently a similar problem, until I found this solution: SET(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -Zi -wd4996 -wd4800") The point was to enclose ALSO the ${CMAKE_CXX_FLAGS_DEBUG} into the two quotes. Hope this is a better

Re: [CMake] how to write cmake file for ImageMagick package?

2006-06-12 Thread kdsfinger
On 6/12/06, Jan Woetzel <[EMAIL PROTECTED]> wrote: [EMAIL PROTECTED] wrote:> ...use the Magick++ package ... So I am trying to write another> FindImageMagick.cmake instead (not work either).You can use mine, works on Linux and Windows. http://www.mip.informatik.uni-kiel.de/~jw/cmake/CMakeModules/Fi

Re: Re: [CMake] output a string instead of a list

2006-06-12 Thread Alexander Neundorf
Hi, > Von: "Brandon J. Van Every" <[EMAIL PROTECTED]> > Brandon J. Van Every wrote: ... > You know I spoke too soon. Once I changed that, I started getting > semicolons in new places *inside of* quoted strings. There is a general > problem of semicolons, double quotes, and spaces in filenames

Re: [CMake] how to write cmake file for ImageMagick package?

2006-06-12 Thread Jan Woetzel
[EMAIL PROTECTED] wrote: The FindImageMagick.cmake I wrote was put in the /usr/local/share/CMake/Modules/ I now copyed yours and put it there, but when I do ccmake . ,it gives the following error message: CMake Error: IMAGEMAGICKLIB_DIR is not set. It must be set to the directory containin

Re: [CMake] how to write cmake file for ImageMagick package?

2006-06-12 Thread Filipe Sousa
[EMAIL PROTECTED] wrote: > On 6/12/06, Jan Woetzel <[EMAIL PROTECTED]> wrote: > > Thanks, Jan. > The FindImageMagick.cmake I wrote was put in the > /usr/local/share/CMake/Modules/ > I now copyed yours and put it there, but when I do ccmake . ,it gives the > following error message: I'm guessing y

Re: [CMake] output a string instead of a list

2006-06-12 Thread William A. Hoffman
At 08:28 AM 6/12/2006, Brandon J. Van Every wrote: >You know I spoke too soon. Once I changed that, I started getting semicolons >in new places *inside of* quoted strings. There is a general problem of >semicolons, double quotes, and spaces in filenames beating each other up, as >they are pas

Re: [CMake] how to write cmake file for ImageMagick package?

2006-06-12 Thread kdsfinger
On 6/12/06, Filipe Sousa <[EMAIL PROTECTED]> wrote: [EMAIL PROTECTED] wrote:> On 6/12/06, Jan Woetzel <[EMAIL PROTECTED]> wrote:>> Thanks, Jan. > The FindImageMagick.cmake I wrote was put in the> /usr/local/share/CMake/Modules/> I now copyed yours and put it there, but when I do ccmake . ,it gives

Re: [CMake] how to write cmake file for ImageMagick package?

2006-06-12 Thread Jan Woetzel
[EMAIL PROTECTED] wrote: I do have FIND_PACKAGE(IMAGEMAGICK) in the CMakeLists.txt. The (file) names are case sensitive! Try FIND_PACKAGE(ImageMagickLib) Jan. -- Dipl.-Ing. Jan Woetzel -- University of Kiel Institute of Computer Science

Re: [CMake] how to write cmake file for ImageMagick package?

2006-06-12 Thread Filipe Sousa
[EMAIL PROTECTED] wrote: > I do have FIND_PACKAGE(IMAGEMAGICK) in the CMakeLists.txt. I guess for the > compatible problem, I have to use all capitals. I also tried > IMAGEMAGICKLIB, doesn't work. The cmake sees the > FindImageMagick.cmakesince each time I change the content of that > file, the c

Re: [CMake] how to write cmake file for ImageMagick package?

2006-06-12 Thread kdsfinger
On 6/12/06, Jan Woetzel <[EMAIL PROTECTED]> wrote: [EMAIL PROTECTED] wrote:> I do have FIND_PACKAGE(IMAGEMAGICK) in the CMakeLists.txt.The (file) names are case sensitive!Try FIND_PACKAGE(ImageMagickLib) Jan.--  Dipl.-Ing. Jan Woetzel--  University of

Re: [CMake] how to write cmake file for ImageMagick package?

2006-06-12 Thread kdsfinger
On 6/12/06, Filipe Sousa <[EMAIL PROTECTED]> wrote: [EMAIL PROTECTED] wrote:> I do have FIND_PACKAGE(IMAGEMAGICK) in the CMakeLists.txt.  I guess for the> compatible problem, I have to use all capitals. I also tried > IMAGEMAGICKLIB,  doesn't work. The cmake sees the> FindImageMagick.cmakesince eac

Re: [CMake] how to write cmake file for ImageMagick package?

2006-06-12 Thread Filipe Sousa
[EMAIL PROTECTED] wrote: > On 6/12/06, Filipe Sousa <[EMAIL PROTECTED]> wrote: > > > I am usng ImageMagick-6.2.8. I was asking for cmake version (cmake --version) > Here is my CMakeLists.txt: > > PROJECT(RREM) > > FIND_PACKAGE(IMAGEMAGICKLIB)# the IMAGEMAGICKLIB has been tried for > ImageMagi

Re: [CMake] how to write cmake file for ImageMagick package?

2006-06-12 Thread Filipe Sousa
[EMAIL PROTECTED] wrote: > On 6/12/06, Jan Woetzel <[EMAIL PROTECTED]> wrote: > I tried FIND_PACKAGE(ImageMagickLib) and got this: > > CMake Error: ImageMagickLib_DIR is set to "/usr/local/include", which is > not a directory containing ImageMagickLibConfig.cmake > > If using FIND_PACKAGE(IMAGEM

Re: [CMake] how to write cmake file for ImageMagick package?

2006-06-12 Thread kdsfinger
On 6/12/06, Filipe Sousa <[EMAIL PROTECTED]> wrote: [EMAIL PROTECTED] wrote:> On 6/12/06, Filipe Sousa <[EMAIL PROTECTED]> wrote:>>> I am usng ImageMagick-6.2.8. I was asking for cmake version (cmake --version)> Here is my CMakeLists.txt:>> PROJECT(RREM)>> FIND_PACKAGE(IMAGEMAGICKLIB)# the IMAGEMAG

Re: [CMake] how to write cmake file for ImageMagick package?

2006-06-12 Thread Jan Woetzel
[EMAIL PROTECTED] wrote: I installed the newest imagemagick package as root. The Magick++.h and the folders of magick, Magick++ and wand are located in /usr/local/include Your problem is not about finding the libs. It is about cmake (not) finding the "FindImageMagicklib.cmake" find script. Pl

Re: [CMake] how to write cmake file for ImageMagick package?

2006-06-12 Thread kdsfinger
On 6/12/06, Filipe Sousa <[EMAIL PROTECTED]> wrote: [EMAIL PROTECTED] wrote:> On 6/12/06, Jan Woetzel <[EMAIL PROTECTED]> wrote:> I tried FIND_PACKAGE(ImageMagickLib) and got this: >>  CMake Error: ImageMagickLib_DIR is set to "/usr/local/include", which is> not a directory containing ImageMagickLi

Re: [CMake] how to write cmake file for ImageMagick package?

2006-06-12 Thread kdsfinger
On 6/12/06, Jan Woetzel <[EMAIL PROTECTED]> wrote: [EMAIL PROTECTED] wrote:> I installed the newest imagemagick package as root. The Magick++.h and> the folders of magick, Magick++ and wand are located in /usr/local/include Your problem is not about finding the libs.It is about cmake (not) finding

Re: [CMake] Patch for IF documentation.

2006-06-12 Thread Brad King
Miguel A. Figueroa-Villanueva wrote: I think the following documentation for the IF command: IF(variable1 OR variable2) True if either variable would be considered true individually. IF(COMMAND command-name) True if the given name is a file or directory.

[CMake] FIND_PACKAGE REQUIRED bug

2006-06-12 Thread Jan Woetzel
The REQUIRED flag checking in FIND_PACKAGE(Foo REQUIRED) is not checking the result of FOO_FOUND anymore. See bug report 3379: http://www.cmake.org/Bug/bug.php?op=show&bugid=3379 Jan. -- Dipl.-Ing. Jan Woetzel -- University of Kiel Institute

[CMake] Building VTK -Errors

2006-06-12 Thread Calvin Gerus
Hello, I am using MS Visual Studio 8 2005, and I was not sure if it is supported with Cmake 2.4.2? I have been trying to build VTK with it and I am getting a compiler error that looks something like this: The C compiler "cl" is not able to compile a simple test program. It fails with the fo

Re: [CMake] output a string instead of a list

2006-06-12 Thread Brandon J. Van Every
Alexander Neundorf wrote:  Von: "Brandon J. Van Every" <[EMAIL PROTECTED]> Brandon J. Van Every wrote: -DHIERARCHICAL_INSTALL -DC_USE_C_DEFAULTS -DC_INSTALL_HOME="E:/Program Files/Chicken" -DC_INSTALL_BIN_HOME="E:/Program Files/Chicken/bin" -DC_INSTALL_INCLUDE_HOME="

Re: [CMake] output a string instead of a list

2006-06-12 Thread Brandon J. Van Every
William A. Hoffman wrote: At 08:28 AM 6/12/2006, Brandon J. Van Every wrote: You know I spoke too soon. Once I changed that, I started getting semicolons in new places *inside of* quoted strings. There is a general problem of semicolons, double quotes, and spaces in filenames be

Re: [CMake] STRING(REPLACE bugged?

2006-06-12 Thread Brad King
Brandon J. Van Every wrote: The CMake 2.4.2 docs specify: STRING(REPLACE [...]) is not defined elsewhere in the document. I presume it is somehow different than a . It appears that a of "@VARIABLE_NAME@" will not match anything in a file. Is this expected behavior or a bug? If it's

[CMake] CMake Error: Attempt at a recursive or nested TRY_COMPILE in directory

2006-06-12 Thread Bernd Schubert
Hi, I'm just beginning to learn CMake and now I'm lost. I need to check for large file support and therefore need to use TRY_COMPILE. In my main CMakeLists.txt file I tried similar to my Mastering CMake book (for version 2.0): TRY_COMPILE(C_MAKE_COMPILER_WORKS ${CMAKE_BINARY_DIR}

Re: [CMake] Macro with strings: nmake/Visual

2006-06-12 Thread Brad King
Peter Kümmel wrote: When I use add_definitions I must pass for nmake and the IDE different string macro definitions: 1. source code: #define BOOST_USER_CONFIG= if(MSVC_IDE) add_definitions(-DBOOST_USER_CONFIG=<\;config.h>\;) else(MSVC_IDE) add_definitions(-DBOOST_USER_CONFIG="") endif(

Re: [CMake] another RPATH problem

2006-06-12 Thread Brad King
Alexander Neundorf wrote: Hi, although cmake now supports RPATH very flexible, we still have a problem. The install RPATH has to be constructed manually. In KDE we set it to the Qt libdir, the KDE libdir and the install libdir. Now the problem is, what to do if the app links to a library which

Re: [CMake] CMake Error: Attempt at a recursive or nested TRY_COMPILE in directory

2006-06-12 Thread Alexander Neundorf
Hi, Von: Bernd Schubert <[EMAIL PROTECTED]> > Hi, > > I'm just beginning to learn CMake and now I'm lost. > > I need to check for large file support and therefore need to use > TRY_COMPILE. > In my main CMakeLists.txt file I tried similar to my Mastering CMake book > (for version 2.0): > >

Re: [CMake] cannot get moc to run on win32 in subdirectories

2006-06-12 Thread Brad King
Patrick Noffke wrote: I'm using cmake 2.4.2 on windows, with Visual Studio 2005 Express Edition. I have a Qt class in a subdirectory from my top-level project. I don't want to build the class as a library, but rather include the source code in the top-level project. But I can't get moc to ru

Re: [CMake] CMake Error: Attempt at a recursive or nested TRY_COMPILE in directory

2006-06-12 Thread Brad King
Bernd Schubert wrote: Hi, I'm just beginning to learn CMake and now I'm lost. I need to check for large file support and therefore need to use TRY_COMPILE. In my main CMakeLists.txt file I tried similar to my Mastering CMake book (for version 2.0): TRY_COMPILE(C_MAKE_COMPILER_WORKS

Re: [CMake] Variable denoting the object suffix

2006-06-12 Thread Brad King
wedekind wrote: Is there a variable in CMake to denote the platform-specific object-file suffix, e.g. ".o" on unix or ".obj" on windows? These variables contain the extension that will be used in the generated project: CMAKE_C_OUTPUT_EXTENSION CMAKE_CXX_OUTPUT_EXTENSION -Brad __

Re: [CMake] Incorrect code generated in DSP project file for IDL source file -- HELP!

2006-06-12 Thread Brad King
Bennett Smith wrote: Hello, I am trying to use cmake for building a project on Windows. This project is currently built using Visual Studio 6.0, and it uses the ATL libraries to produce some COM components. Part of this is the invocation of the MIDL compiler to process a file with the .IDL exten

Re: [CMake] Building VTK -Errors

2006-06-12 Thread Brad King
Calvin Gerus wrote: I am using MS Visual Studio 8 2005, and I was not sure if it is supported with Cmake 2.4.2? I have been trying to build VTK with it and I am getting a compiler error that looks something like this: The C compiler "cl" is not able to compile a simple test program. It fails w

Re: [CMake] CMake Error: Attempt at a recursive or nested TRY_COMPILE in directory

2006-06-12 Thread Bernd Schubert
Hello Alex, hello Brad, thanks a lot for your help. > You are trying to put the build tree of the try-compile test on top of > the main build tree. Try this: Ah, I begin to understand. > > TRY_COMPILE(C_MAKE_COMPILER_WORKS > ${CMAKE_BINARY_DIR}/CMakeTmp > ${PROJECT_SO

[CMake] Question about INSTALL_TARGETS error

2006-06-12 Thread kdsfinger
hi, all I am using GUISupport/Qt come with the vtk5.0 and try to compile with cmake but get the following error message: CMake Error: Error in cmake code at /home/me/vtk/VTK/GUISupport/Qt/CMakeLists.txt:183: INSTALL_TARGETS called with incorrect number of arguments The CMakeLists.txt with the e