Re: [CMake] The input line is too long (MinGW)

2006-09-21 Thread Brad King
Martin Dobias wrote: > I try to build executable in my project (using about 150 source files) > with CMake and MinGW. When it comes to linking I get an error message > from system saying: > > The input line is too long. What version of CMake are you using? This has been fixed in CVS CMake and wi

Re: [CMake] A cmake-2.4.3 segfault that is caused by a circular chain of library dependencies

2006-09-21 Thread Brad King
Alan W. Irwin wrote: > Today I inadvertently formed an unwanted circular chain of library > dependencies with the target_link_libraries command, and as a result CMake > segfaulted. [snip] > [EMAIL PROTECTED]> cmake ../test_cmake > -- Check for working C compiler: gcc > -- Check for working C compil

Re: [CMake] Re: TRY_COMPILE painful for tool testing

2006-09-21 Thread Brad King
Arjen Markus wrote: > I am running into very similar problems with the Compaq Visual Fortran > compiler on Windows: > > When CMake tests if this is an acceptable compiler, the > generated makefile contains partly Windows-style paths (c:\...) and > partly UNIX-style (c:/). Are you saying tha

Re: [CMake] Extensionless Headers, and Non-compiled SOURCE_GROUP files

2006-09-21 Thread Brad King
Jacob Foshee wrote: > Howdy, > I'm helping out with the CMake build for OpenSceneGraph. OSG follows > the standard practice of using extensionless headers for common > interfaces. We would like all headers to show up in the project files > (e.g. vcproj). For the SOURCE_GROUP command to work, the

Re: [CMake] [MISC] CMake support for enscript

2006-09-21 Thread Brad King
Tristan Carel wrote: > Enscript highlightning system does not support CMake source files in > the last version and Google told me anyone has written the required > file `cmake.st'. > > So I made a very naive one Cool! > Maybe this could be added to the CMake wiki. You're welcome to create a Wik

Re: [CMake] Xcode and library search paths

2006-09-22 Thread Brad King
Anders Sundman wrote: > Xcode and CMake works fine for me with one (minor) exception. > > When I build my Xcode project with CMake and then compile i get the > following warning: > > Tool:0: warning -L: directory name (/usr/local/lib/Debug) does not exist > > It looks like CMake adds the entry:

Re: [CMake] Escaping $

2006-09-22 Thread Brad King
Kedzierski, Artur CIV NAVSURFWARCENDIV CORONA wrote: > Hi, > > I am trying to create FooConfig.cmake by having > FooConfig.cmake.in and running CONFIGURE_FILE(FooConfig.cmake.in > FooConfig.cmake) > on it. > In FooConfig.cmake.in, I have something like: > SET(MY_LOCAL ${CMAKE_INS

Re: [CMake] Re: Cmake and CXX

2006-09-22 Thread Brad King
Xavier Larrode wrote: > Filipe Sousa a écrit : >> On Friday 22 September 2006 08:15, Xavier Larrode wrote: >> >>> Hello all, >>> Cmake is using by default /usr/bin/c++ to compile project. >>> Is it a way to set it ton another compiler like g++, or gcc-color. >>> Thanks >> >> CXX=g++ CC=gcc cmake

Re: [CMake] How to link libraries correctly?

2006-09-22 Thread Brad King
Enrico Scholz wrote: > Hello, > > consider the following CMakeLists.txt > > > file(WRITE ${CMAKE_CURRENT_BINARY_DIR}/bar.c "void foo() { }\n") > file(WRITE ${CMAKE_CURRENT_BINARY_DIR}/foo.c "void bar() { }\n") > > add_library(foo SHARED ${CMAKE_CURRENT_BINARY_DIR}/foo.c) > target_link_libra

Re: [CMake] 3rd party modules

2006-09-22 Thread Brad King
Kedzierski, Artur CIV NAVSURFWARCENDIV CORONA wrote: > Thanks Brad. > Let's say for project Foo and project Bar, I've created > a FooConfig.cmake and BarConfig.cmake. Project Foo uses Cmake > but Bar doesn't. During the installation, where should Foo and Bar place > the Config.cmake so

Re: [CMake] The input line is too long (MinGW)

2006-09-22 Thread Brad King
Martin Dobias wrote: > On 9/21/06, Brad King <[EMAIL PROTECTED]> wrote: >> Martin Dobias wrote: >> > I try to build executable in my project (using about 150 source files) >> > with CMake and MinGW. When it comes to linking I get an error message >> > fr

Re: [CMake] MSYS generator

2006-09-22 Thread Brad King
Luigi Calori wrote: > I' m trying to use CMake to compile OpenSceneGraph: > at present I' m testing the MSYS generator: some questions: > 1) I see that the file CMakeMSYSFindMake.cmake is rensponsible of > finding the msys make: is it possible to specify the location inside the > project? > I would

Re: [CMake] [Fwd: Re: [vtkusers] Re: Fwd: Re: Compiling VTK-5.0.2 with Cygwin make]

2006-09-22 Thread Brad King
David Cole wrote: > CMake bug then...? > > > > > Subject: > Re: [vtkusers] Re: Fwd: Re: Compiling VTK-5.0.2 with Cygwin make > From: > Steve Robbins <[EMAIL PROTECTED]> [snip] > FIND_PATH(OPENGL_INCLUDE_DIR GL/gl.h >

Re: [CMake] Solution Folders

2006-09-22 Thread Brad King
Jacob Foshee wrote: Visual Studio has "Solution Folders" for grouping projects. Does CMake support this yet? I suppose the appropriate command would be PROJECT_GROUP. No, but it would be a great feature. Please submit a request here: http://www.cmake.org/Bug and send me the bug number. Th

Re: [CMake] Variables propagating upwards

2006-09-23 Thread Brad King
Lachlan Gunn wrote: Hi, I have been working on a project that makes use of CMake, and a problem has come up during the course of development. When I set a variable in a lower-level CMakeLists.txt file, it does not propagate upwards into the parent CMakeLists.txt file. Example: src/CMakeLists.

Re: [CMake] The input line is too long (MinGW)

2006-09-23 Thread Brad King
Martin Dobias wrote: On 9/22/06, Brad King <[EMAIL PROTECTED]> wrote: I'll assume you're using the MSYS Makefiles generator. Please let me know if this is not the case. No, I'm using MinGW Makefiles generator. Now I've tried alse MSYS Makefiles generator and linking

Re: [CMake] Re: The input line is too long (MinGW)

2006-09-23 Thread Brad King
Martin Dobias wrote: Brandon J. Van Every wrote: Martin Dobias wrote: > > Actually CMakeSetup from CVS crashes for me even with so trivial > CMakeLists.txt like: Now I've found the problem of the crash. I've been building CMake with MSVC8 (Express edition), bootstrapping with CMake 2.4.3. Bui

Re: [CMake] correct way to pass CMake path variables to ADD_DEFINITIONS?

2006-09-25 Thread Brad King
Wojciech Jarosz wrote: > I am writing a confidence test which needs to read some asset files. In > order to tell the test where these files are located I do the following > within the test's CMakeLists.txt: > ADD_DEFINITIONS(-DRB_DATA_DIR=\"${CMAKE_CURRENT_SOURCE_DIR}/\") > > Within the test code

Re: [CMake] Question about vars

2006-09-25 Thread Brad King
Joshua Blocher wrote: > I'm having trouble with variables, anytime i use a variable with > gtk+-2.0 (i.e. gtk+-2.0_CFLAGS comes up cmake chokes on it and splits > out (see below) is this because i have non-alphanumeric characters in > them. [snip] > syntax error, unexpected cal_SYMBOL, expecting }

Re: [CMake] Target properties, dependencies and subdirs order?

2006-09-25 Thread Brad King
Jeroen Janssen wrote: > Hi, > > I have a question on the evaluation/creation of target properties in > relation with dependencies. > > Example: > > TestDll directory with interface/ and src/ > TestExe directory with src/ > > TestExe has a dependency to TestDll (with add_dependency) >

Re: [CMake] How to get current directory of the included files

2006-09-26 Thread Brad King
Eduard Bloch wrote: > Hello, > > I need to add a certain variable and a set of strings in a set of > applications, beeing in different paths. This is required because a > static library is compiled with different settings, therefore the set of > additional libraries varies. > > To avoid code dupl

Re: [CMake] 3rd party modules

2006-09-26 Thread Brad King
Kedzierski, Artur CIV NAVSURFWARCENDIV CORONA wrote: > Got it. Thank You. > Now, there is another thing that I can't seem to find. > If I have a Foo library with CMakeLists.txt: > ADD_LIBRARY(Foo foo.cpp) > then I have FooConfig.cmake for it: > SET(FOO_LIBRARY @LIBRARY_OUTPUT_PA

Re: [CMake] Compiling dynamic source code

2006-09-27 Thread Brad King
Littlejohn, Todd wrote: > I am currently working on a project that auto-generating code based on a > data model defined using XSD/XML. The code generator I have developed > is using CMake to make the code generator. Next CMake is used to > generate the C++ and Java data models. The problem I am

Re: [CMake] Re: TRY_COMPILE painful for tool testing

2006-09-27 Thread Brad King
Arjen Markus wrote: > Like I promised, here is the information I have on this bug: [snip] > As you can see, the source file is given with the native (Windows-style) > path, but the object file is specified with forward slashes. This is what > causes the compiler to complain. Try adding this to you

Re: [CMake] Finding libs/headers on MSYS/MinGW

2006-09-27 Thread Brad King
Kai Sterker wrote: > But cmake cannot find the headers, (or libraries in /usr/local/lib), > because it does know nothing about the UNIX-like structure of MSYS. > > So the problem is not that there is something wrong when running cmake > from a MSYS shell instead of a Windows command prompt. It beh

Re: [CMake] Bug: SET(CMAKE_DEBUG_POSTFIX "D")

2006-09-29 Thread Brad King
Mathieu MARACHE wrote: > Hi, > I've got a small bug trying to use configuration postfixes under windows > with at least NMakes and VisualStudio C++ .NET 7.1 . I used the latest > 2.4.3 release of CMake. > > The following command works for libraries and shared libraries but not > for executables. F

Re: [CMake] Bug: SET(CMAKE_DEBUG_POSTFIX "D")

2006-09-29 Thread Brad King
Mathieu MARACHE wrote: > BTW, we tried to buy the CMake book this summer but our supplier told us > it was not edited anymore... Is this true ? And if yes will an updated > version of the book be released ? I don't know why they said that. Kitware has always been the publisher and it is still upd

Re: [CMake] 3rd party modules

2006-09-29 Thread Brad King
Kedzierski, Artur CIV NAVSURFWARCENDIV CORONA wrote: > Thanks Brad. > So for those two lines: > SET(CMAKE_DEBUG_POSTFIX "Debug") > GET_TARGET_PROPERTY(LIBNAME Foo LOCATION) > Should I get? > /lib/libfooDebug.a > I am getting (no 'Debug'): > /lib/libfoo.a > but libfoo

Re: [CMake] 3rd party modules

2006-09-29 Thread Brad King
Kedzierski, Artur CIV NAVSURFWARCENDIV CORONA wrote: > That didn't do it. This is what I am doing: > ADD_LIBRARY(Foo foo.cpp) > SET_TARGET_PROPERTIIES(Foo PROPERTIES DEBUG_POSTFIX "Debug") > GET_TARGET_PROPERTY(LIBNAME Foo LOCATION) > I am still getting libfoo.a for the ${LIBNAME} but

Re: [CMake] 3rd party modules

2006-09-29 Thread Brad King
Brad King wrote: > Kedzierski, Artur CIV NAVSURFWARCENDIV CORONA wrote: >> That didn't do it. This is what I am doing: >> ADD_LIBRARY(Foo foo.cpp) >> SET_TARGET_PROPERTIIES(Foo PROPERTIES DEBUG_POSTFIX "Debug") >> GET_TARGET_PROPERTY(LIBNAME Foo LOC

Re: [CMake] quieter recompiles

2006-10-02 Thread Brad King
Joshua Blocher wrote: > After I have built my project and I update some of the project. > it spits out a bunch of lines with the percents even if the file has > been already compiled. Is there anyway to make its progress > updated on one line unless it has to re-compile something. It used to be to

Re: [CMake] -fPIC flag on object build for static lib targets?

2006-10-02 Thread Brad King
James Mansion wrote: >> Are you trying to link object files compiled without -fPIC into a shared >> library? That would never work; -fPIC is required for all objects in shared >> libraries. > > I'm guessing so - I want to do it too! Or rather, be able > to make a static library containing objec

Re: [CMake] Testing whether a variable has already been assigned a non-null value

2006-10-02 Thread Brad King
Alan W. Irwin wrote: > I have noticed tests like > > IF("${VARIABLE}" MATCHES "^${VARIABLE}$") > > in, e.g., CheckFunctionExists.cmake where VARIABLE is a macro argument. > From > the context I assume it is a test for whether the actual variable used in > the macro call has been assigned a non-nu

Re: [CMake] INSTALL( COMPONENT

2006-10-02 Thread Brad King
Filipe Sousa wrote: > I don't understand how COMPONENT works. From the INSTALL manual the > "COMPONENT argument specifies an installation component name with which > the install rule is associated, such as "runtime" or "development". > During component-specific installation only install rules assoc

Re: [CMake] Success with Compaq Visual Fortran - at least some!

2006-10-03 Thread Brad King
Arjen Markus wrote: >> SET(CMAKE_WINDOWS_OBJECT_PATH 1) > While it worked with my small test project (single file, single language), > it fails with PLplot: the setting gets in the way of the detailed tests on > the capacities of the C compiler. I get error messages about the incorrect > use of G

Re: [CMake] How Do I make a Custom Rule.

2006-10-03 Thread Brad King
Peter Kahn wrote: > What is the right pattern to use in cmake to create a custom rule for > converting a bunch of files? > > > In make I can define a custome rule for file types. > What is the right way to do this in cmake? > > I can create a macro, but I'm unsure how to properly conne

Re: [CMake] CMakeDetermineSystem.cmake

2006-10-03 Thread Brad King
Kedzierski, Artur CIV NAVSURFWARCENDIV CORONA wrote: > Is there a module like CMakeDetermineSystem.cmake > that would tell the specific Linux distribution and > architecture that compilation is running on? I would like to > use it to attach it to package name generated by CPack. There is n

Re: [CMake] Relinking before installing

2006-10-03 Thread Brad King
Andrew Maclean wrote: > In Linux, is it possible to relink libraries before installation? > For instance if I have built with shared libraries on and > CMAKE_SKIP_RPATH OFF then I have runtime paths in the shared libraries. > When I finally decide to install a version for system-wide use (not > dev

Re: [CMake] -fPIC flag on object build for static lib targets?

2006-10-03 Thread Brad King
James Mansion wrote: > http://www.cmake.org/Wiki/CMake_FAQ#Does_CMake_support_.22convenience.22_lib > raries.3F > > The FAQ is misleading - they DO make sense for (all) non-UNIX linkers. What > non-UNIX linkers do not have an equivalence to an archive? > > There is no reason why I cannot compile

Re: [CMake] Copying matching files

2006-10-03 Thread Brad King
Hugo Costelha wrote: > I need to copy all files that match a certain patter during compilation time. > I am currenlty using the following in CMakeLists.txt: > > FILE(GLOB luts "lut*") > FOREACH(file ${luts}) > GET_FILENAME_COMPONENT(basename ${file} NAME) > ADD_CUSTOM_TARGET( luts ALL >

Re: [CMake] FIND_PATH with multiple path in a single variable

2006-10-03 Thread Brad King
frederic heem wrote: > Hi, > Here is the problem, pkgconfig is used to get the include path, for dbus, its > value is "-I/usr/include/dbus-1.0 -I/usr/lib/dbus-1.0/include" and the > variable name is DBUS_INCLUDE_DIR_SYSTEM. The following FIND_PATH fails to > find the include files: > FIND_PATH(D

Re: Fwd: Re: [CMake] Copying matching files

2006-10-03 Thread Brad King
Hugo Costelha wrote: > On Tuesday 03 October 2006 16:07, you wrote: >> You can add a custom target that runs >> >> cmake -P myscript.cmake >> >> and then put the glob/copy code in the script. In the script use >> EXECUTE_PROCESS to call cmake -E copy in a FOREACH on the result of the >> glob. > >

Re: [CMake] Success with Compaq Visual Fortran - part 2

2006-10-03 Thread Brad King
Arjen Markus wrote: > for reasons I do not understand (*) the error messages I reported > earlier after setting CMAKE_WINDOWS_OBJECT_PATH to 1 have vanished. > The project's makefiles can now be generated by CMake. > > In fact make begins to build the C libraries and the FORTRAN 77 libraries, > bu

Re: [CMake] Copy includes + Library config

2006-10-04 Thread Brad King
Pablo Odorico wrote: > How can I use cmake to copy the library headers in a portable way? > (eg: /usr/include/pgl/*.h in linux) > > Is there a way to run ldconfig after "make install" so the library can be > used > right away? Will that affect the install in a non-unix OS? Look at the INSTALL

Re: CMake FAQ updates (Was Re: [CMake] -fPIC flag on object build for static lib targets?)

2006-10-04 Thread Brad King
Warren Turkal wrote: > On Monday 02 October 2006 08:38, Brad King wrote: >> http://www.cmake.org/Wiki/CMake_FAQ#Does_CMake_support_.22convenience.22_li > > There are some references to 2.2 being the current release and having to use > the current development for some features

Re: [CMake] Building the same library with different defines

2006-10-04 Thread Brad King
Patrick J. Franz -- ML wrote: > > I'm a fairly new CMake user, so I apologize in advance if this question > is answered trivially elsewhere. I searched through the docs and Google > already to no avail. > > In a project I am working on, I need to build our Win32 libraries in > both cdecl and stdc

Re: [CMake] static versus shared libraries with BUILD_SHARED_LIBS

2006-10-04 Thread Brad King
James Bigler wrote: > I'm using CMake 2.4.3 on Linux. When I do: > > OPTION(TEEM_BUILD_SHARED_LIBS "Build Teem with shared libraries." OFF) > OPTION(BUILD_SHARED_LIBS ${TEEM_BUILD_SHARED_LIBS}) > > or > > OPTION(BUILD_SHARED_LIBS "Build package with shared libraries." OFF) BUILD_SHARED_LIBS do

Re: [CMake] SubDirs and Libraries

2006-10-04 Thread Brad King
Peter Kahn wrote: > What is the standard way of having cmake access libaries built on the > same subdir level? > > I have a project with two subdirs: Util and App. Util builds a > library called 'utillib'. Ap builds a > library and an exe (aplib, and ap.exe). > Main\ >CMakeLists.tst >Ut

Re: [CMake] issue with INSTALL and CMAKE_INSTALL_PREFIX

2006-10-05 Thread Brad King
Xavier Delannoy wrote: > SET(CMAKE_INSTALL_PREFIX "$ENV{DESTDIRPREFIX}") > MESSAGE(STATUS "CMAKE_INSTALL_PREFIX ${CMAKE_INSTALL_PREFIX}") > INSTALL(TARGETS nbase_shared DESTINATION /usr/Firewall/lib) [snip] > /home/xavierd/tempbuild/firmware/lib/libnbase/shared/cmake_install.cmake:30: > FILE cannot

Re: [CMake] ADD_CUSTOM_COMMAND problem with cmake 2.4.3

2006-10-05 Thread Brad King
Gregor Berginc wrote: > Dear all, > > yesterday I faced wierd behaviour of the newest cmake. Before, I was > using cmake version 2.4-patch 2 and the following command executed > successfully: > = > ADD_CUSTOM_COMMAND( > OUTPUT ${CMAKE_CURRENT_SOURCE_DIR}/${cpp_class}.h > COMMAND ${JAVAH_RU

Re: [CMake] ADD_CUSTOM_COMMAND problem with cmake 2.4.3

2006-10-05 Thread Brad King
Alexander Neundorf wrote: > Original-Nachricht > Datum: Thu, 5 Oct 2006 09:53:37 +0200 > Von: "Gregor Berginc" <[EMAIL PROTECTED]> >> What has changed since patch 2 version? Is this a bug or just my bad >> interpretation of ADD_CUSTOM_COMMAND and cmake variables? > > You need to

Re: [CMake] Suggestions for FindSDL*.cmake

2006-10-05 Thread Brad King
Pablo Odorico wrote: > Hi, > > FIND_PACKAGE(SDL REQUIRED) was not working in my system [1], nor a friend's > system [2], so I started messing around with FindSDL*.cmake to make them > complain with > http://www.cmake.org/cgi-bin/viewcvs.cgi/Modules/readme.txt?root=CMake&view=markup > ... as muc

Re: [CMake] SubDirs and Libraries

2006-10-05 Thread Brad King
James Mansion wrote: > I think you need a dependency declaration too don't you? > > I've seen VStudio 2k3 build out of order without. > >> # App/CMakeLists.txt >> ADD_EXECUTABLE(myexe ...) >> TARGET_LINK_LIBRARIES(myexe mylib) > > It seems actually a little more complicated in practice > because

Re: [CMake] select debug or optimized at make time instead of at cmake time

2006-10-06 Thread Brad King
Richard Fuchs wrote: > Is there a way to be able to select if the build will be debug or > optimized at make time instead of during cmake time? > > So, I can SET(CMAKE_BUILD_TYPE Debug) or SET(CMAKE_BUILD_TYPE Release) > for debug or optimized code respectively, then when I run make, the > corresp

Re: [CMake] how to set environment variable when executing process

2006-10-06 Thread Brad King
frederic heem wrote: > Hi, > In some FindXXX.cmake, pkgconfig is used to locate include directories > libraries, definitions etc. I would like to set the environment variable > PKG_CONFIG_PATH to $MYLIBDIR:$PKG_CONFIG_PATH, hence pkg-config will look > first for $MYLIBDIR/mylib.pc > EXECUTE_PRO

Re: [CMake] CMake generated makefiles try to build a target that does not exist (make[2]: *** No rule to make target ...)

2006-10-06 Thread Brad King
Bill Tonkin wrote: > The short story is that the CMake generated makefiles try to build a target > that seems to exist, but with a slightly different name. > > make[2]: *** No rule to make target > `../../libraries/my_a/CMakeFiles/my_a.di > r/build'. [snip] > The content of CMakeLists.txt [1]

Re: [CMake] Building a Debug Project against a Release VTK

2006-10-09 Thread Brad King
Mike Jackson wrote: > I just tried to have CMake generate a "debug" build of my project but when > cmake ran it gave me the warning that Cmake was forcing my build type to > Release since that is what VTK was built with. I _understand_ the error. What > I need to know is if there is a way to act

Re: [CMake] add dependencies to clean target ?

2006-10-09 Thread Brad King
frederic heem wrote: > It seems that it's not possible to add dependencies to implicit target such > as > clean and package_source. The user defined target FsmCompilerClean must be > called whenever the target clean is used. [snip] > # fails here > ADD_DEPENDENCIES(clean FsmCompilerClean) The "

Re: [CMake] CMake generated makefiles try to build a target that does not exist (make[2]: *** No rule to make target ...)

2006-10-09 Thread Brad King
Bill Tonkin wrote: > I will give the CVS sources a try and report back. Thank you for your help. It turns out this was not fixed in CVS, but it is now. I've also added a test for out-of-source/out-of-binary subdirectories like your case. /cvsroot/CMake/CMake/Source/cmMakefileTargetGenerator.cxx

Re: [CMake] Problems selecting compiler in Solaris

2006-10-10 Thread Brad King
Toni Cebrian wrote: >I have a Sparc machine with Solaris 8 installed. I have locally > installed GCC (/usr/local/bin) and mounted with NFS a disk with the > compiler tools of Sun (/opt/studio11/SUNWspro/bin). The problem I have > is that when I run ccmake I try to select the compiler of Sun > (

Re: [CMake] end of line

2006-10-10 Thread Brad King
frederic heem wrote: > The output of pkgconfig has to be parsed to make it compatible with cmake. > pkgconfig adds the end of line for each results. > Is there a portable way to remove the end of line ? Look at STRING(REGEX) -Brad ___ CMake mailing list

Re: [CMake] Install Prefix and RPM

2006-10-10 Thread Brad King
Helio Chissini de Castro wrote: > Hi everyone > > Is there an easy way to make a different install prefix durong the install > phase, most directed for RPM construction ( like the old DESTDIR on > auto*tools ) ? > I have a code that during build parse and substitute de real install prefix, > an

Re: [CMake] INCLUDE_DIR or INCLUDE_DIRS?

2006-10-10 Thread Brad King
Kedzierski, Artur CIV NAVSURFWARCENDIV CORONA wrote: > I am looking at the readme.txt file in CMake's modules > directory. It says: > > Please use the following consistent variable names for general use. > XXX_INCLUDE_DIRS > ... > You do not have to provide all of the above variables. You

Re: [CMake] How to set Install_name on OS X

2006-10-10 Thread Brad King
Mike Jackson wrote: > I am attempting to set the "install_name" on OS X for Shared Libraries but > the solution that I _thought_ would work does not because somewhere in cmake > the linker flag "-install_name" is _already_ defined and so adding another > one just confuses the linker. > Is there s

Re: [CMake] Preserving directory structure with INSTALL(...)

2006-10-10 Thread Brad King
Kedzierski, Artur CIV NAVSURFWARCENDIV CORONA wrote: > Is this part of CMake 2.4.3? > I get this error: > INSTALL called with unknown mode DIRECTORY It is in CVS CMake. It will be in 2.4.4. -Brad ___ CMake mailing list CMake@cmake.org http

Re: [CMake] How to set Install_name on OS X

2006-10-10 Thread Brad King
Mike Jackson wrote: > On 10/10/06 4:08 PM, "Brad King" <[EMAIL PROTECTED]> wrote: >> cmake --help-command SET_TARGET_PROPERTIES > > OK.. Reading all the output from that command there seems to be some > mutually exclusive settings. Also, the output has settin

Re: [CMake] Setting global link flags

2006-10-11 Thread Brad King
Axel Roebel wrote: > I frequently struggle with the problem to set > global linker flags. Global here means these flags should be used > whenever the linker is used. The main example where I need that > is the -mno-cygwin flag of the cygwin compiler. > This flag creates objects that will not make

Re: [CMake] Building generated c++ code with py++ and boost.python

2006-10-11 Thread Brad King
Pecevski Dejan wrote: > Hi, > > As part of our build process which uses cmake, we want to generate > wrapper c++ files from existing sources, for python interfacing (using > Py++ and boost.python). > The dependency we want to achieve is : >A1.cpp A2.cpp A3.cpp A1.h A2.h A3.h ... <- Ab

Re: [CMake] MACOSX_DEPLOYMENT_TARGET

2006-10-11 Thread Brad King
Axel Roebel wrote: > The problem is that to my knowledge the only way to communicate the > deployment target to gcc is via environment variables. I admit this is a > really strange way (probably its save to say silly) to select compiler > options, but as far as I know, this is the way it is done

Re: [CMake] How to set Install_name on OS X

2006-10-11 Thread Brad King
Mike Jackson wrote: > > > On 10/10/06 4:56 PM, "Brad King" <[EMAIL PROTECTED]> wrote: > >> Mike Jackson wrote: >>> On 10/10/06 4:08 PM, "Brad King" <[EMAIL PROTECTED]> wrote: >>>> cmake --help-command SET_TARGET_PROPERTIES &

Re: [CMake] How to set Install_name on OS X

2006-10-11 Thread Brad King
Mike Jackson wrote: > On 10/10/06 4:56 PM, "Brad King" <[EMAIL PROTECTED]> wrote: >> SET_TARGET_PROPERTIES (DislocationIO >> PROPERTIES BUILD_WITH_INSTALL_RPATH 1 >> INSTALL_NAME_DIR "@executable_path/../PlugIns" >> ) Okay

Re: [CMake] Component-based FindSDL.cmake

2006-10-11 Thread Brad King
Pablo Odorico wrote: > Some questions now: > - Can't QUIET be used with components? The entire find is either quiet or not. > - _all_ components have to be REQUIRED? The component syntax is just a list of components that are requested. You can interpret it however you wish in the Find module

Re: [CMake] How to set Install_name on OS X

2006-10-11 Thread Brad King
Mike Jackson wrote: > Thanks for the fix. I look forward to the next release of Cmake. BTW, when > is the next release? When it's ready. -Brad ___ CMake mailing list CMake@cmake.org http://www.cmake.org/mailman/listinfo/cmake

Re: [CMake] CMakeFiles/Progress

2006-10-12 Thread Brad King
Andreas Schneider wrote: > if I install my project with "sudo make install" why changes the owner > of CMakeFiles/Progress and its contents to root? > > The next time I recompile as a user I have no progress status, cause the > user isn't able to write to counts.txt. > > Is this a bug? :) Yes, d

Re: [CMake] Crash in ComputeLinkInformation: cmTarget::GetDirectory returns NULL for UTILITY type

2006-10-12 Thread Brad King
Eran Guendelman wrote: > Looking at cmTarget::GetDirectory, my instinct for "fixing" this is to > change > > default: > return 0; > > to > > default: > this->Directory = ""; > > so that the subsequent check of if(this->Directory.empty()) will take > care of this case. But then again, I don't r

Re: [CMake] INL files

2006-10-15 Thread Brad King
Matthew Campbell wrote: We’ve been converting our build system to cmake and are finding it pretty darn good. However, I am currently working on a target that has .inl files as we use them instead of putting code directly in the header files. For some reason, when generating visual studio 2005

Re: [CMake] How to check/set CMAKE_INSTALL_PREFIX

2006-10-16 Thread Brad King
Eric Noulard wrote: > What is the good way to change the default value of CMAKE_INSTALL_PREFIX > besides the usual: This question has come up several times and I've been deferring a fix until a project-specified initial cache feature is implemented. That feature has been delayed because it is tri

Re: [CMake] example of ctest --build-and-test

2006-10-16 Thread Brad King
Luigi Calori wrote: > I have the following problem: > a master cmake project that wants to configure and build a series of > slave cmake projects > I' ve tried several hacking but not found an elegant solution. > I' ve read from the list that the > > ctest --build-and-test > > > could be used fo

Re: [CMake] Cmake + Matlab mex

2006-10-16 Thread Brad King
Wojciech Jarosz wrote: > I saw a couple questions regarding this in the archives from a few > years, but no answers. > > I am using CMake for my project, and would now like to write a matlab > mex function which would use my C/C++ code base. I'd like to have the > CMake infrastructure figure out t

Re: [CMake] How to check/set CMAKE_INSTALL_PREFIX

2006-10-17 Thread Brad King
Alexander Neundorf wrote: > Original-Nachricht > Datum: Mon, 16 Oct 2006 14:02:28 -0400 > Von: Brad King <[EMAIL PROTECTED]> > An: Eric Noulard <[EMAIL PROTECTED]> > Betreff: Re: [CMake] How to check/set CMAKE_INSTALL_PREFIX > >> Eric Noular

Re: [CMake] Can't use Boost ??

2006-10-17 Thread Brad King
Matthieu Brucher wrote: > Hi, > > I'm trying to use Boost in my applications. On Windows, no problem, it > can now find the good headers and libraries thank to FindBoost.cmake. > On Linux, on FC5 or on Debian testing, I have cmake 2.4-patch3, with the > FindBoost.cmake file, but when I launch cmak

Re: [CMake] Strange behaviour on install

2006-10-17 Thread Brad King
Helio Chissini de Castro wrote: > Hi > > I got a code similar like this: > > #-- > > INSTALL( FILES ${CMAKE_CURRENT_BINARY_DIR}/providers.xml > DESTINATION /opt/fdo ) > > INSTALL( CODE "MAKE_DIRECTORY\( /opt/fdo/Repositories/Library/DataFiles\)" ) > > #- > > If i inst

Re: [CMake] Strange behaviour on install

2006-10-17 Thread Brad King
Brad King wrote: > Helio Chissini de Castro wrote: >> INSTALL( FILES ${CMAKE_CURRENT_BINARY_DIR}/providers.xml >> DESTINATION /opt/fdo ) >> >> INSTALL( CODE "MAKE_DIRECTORY\( /opt/fdo/Repositories/Library/DataFiles\)" ) [snip] > MAKE_DIRECTORY is j

Re: [CMake] FIND_LIBRARY debug/release

2006-10-18 Thread Brad King
Jacob Foshee wrote: > I am working on updating the FindDCMTK.cmake module. > It includes a lot of commands like the following: > FIND_LIBRARY( DCMTK_dcmimgle_LIBRARY dcmimgle > ${DCMTK_DIR}/dcmimgle/libsrc > ${DCMTK_DIR}/dcmimgle/libsrc/Release > ${DCMTK_DIR}/dcmimgle/libsrc/Debug > ) > > Shoul

Re: [CMake] Forcing vc guiids to be the same

2006-10-18 Thread Brad King
Matthew Campbell wrote: > I was wondering if there was any way to instruct cmake to generate the > same guid’s for Microsoft projects and solution files? We would like to > have the option of putting the solutions and projects in source control > but this poses a problem since the guids are regene

Re: [CMake] Could somebody please explain how caching works with NOTFOUND variables?

2006-10-18 Thread Brad King
Alan W. Irwin wrote: > Are FALSE > variable values such as "SWIG_DIR-NOTFOUND" allowed to be overwritten by > FIND_PATH even though they are cached from a previous FIND_PATH call? Is > there a general rule I can use to always predict the results of trying > to overwrite variables that have been ca

Re: [CMake] Could somebody please explain how caching works with NOTFOUND variables?

2006-10-19 Thread Brad King
Alan W. Irwin wrote: > I suggest this important additional caching rule concerning the FIND_xxx > commands should be stated prominently in the principal documentation > that is > obtained by running the "cmake --help-full" command. To be fair, somewhere > in the Wiki (I have lost the exact referen

Re: [CMake] Can't use Boost ??

2006-10-19 Thread Brad King
Andreas Schneider wrote: > I have created a much better FindBoost.cmake module. It isn't tested on > all plattforms yet, but it should work just fine under Linux and Mac. As > soon as it is tested, I'll try to get it upstream. > > You can find it here: > > http://dev.openwengo.com/trac/openwengo/

Re: [CMake] Removing unused variables from the cache

2006-10-19 Thread Brad King
Sylvain Benner wrote: > I don't know if this is possible but you can set your variable to an > empty string. > > SET( SOME_OPTION "") > >> Is it possible to remove variables from the cache ? For example: >> >> OPTION( BUILD_X "Descr" OFF ) >> >> IF ( BUILD_X ) >>SET( SOME_OPTION "Hello world"

Re: [CMake] Eval/Exec of a string

2006-10-19 Thread Brad King
Benjamin THYREAU wrote: > Does someone know of a way to execute some cmake code contained in a string > variable ? Something like INCLUDE, but working from a string instead of a > file. There is no language feature for this. You could try using CONFIGURE_FILE to write the string to a file and t

Re: [CMake] cmake segfaults with ASM compiler

2006-10-19 Thread Brad King
Prakash Punnoor wrote: > Hi, > > if I use Windows cmake 2.4.x (x in 0 to 3) in MSYS/MinGW with MSYS (in > Windows > XP SP2 Ger) it segfaults with my custom Module for ASM compiler integration > (perhaps you remember...). It starts segfaulting at generation time as soon > as I add a file with a

Re: [CMake] VMS

2006-10-19 Thread Brad King
Steven Boyd wrote: > Can CMake be used on a VMS operating system? Does anybody have any > experience with this? What would be involved with trying to get it > working? Any tips on preventing a futile experiment would be welcomed! To my knowledge no one has attempted this before. I'm not too fa

Re: [CMake] Creating visual studio 8 project with dll output

2006-10-19 Thread Brad King
Prename Surname wrote: > Hello all. > How do i create a visual studio 8 project with dll output? > What command must i use ? Write a CMakeLists.txt file containing ADD_LIBRARY(mylib SHARED mylib.c) Run CMakeSetup, and choose the "Visual Studio 8 2005" generator. See http://www.cmake.org/HTML/Do

Re: [CMake] ctest with SSL?

2006-10-19 Thread Brad King
Kedzierski, Artur CIV NAVSURFWARCENDIV CORONA wrote: > Is there a way to enable SSL in CTest? > When I use 'https' URL, I get > curl_easy_perform() says: libcurl was built with SSL disabled[...] I've just committed changes to support building CMake against a system-installed curl. See thi

Re: [CMake] Removing unused variables from the cache

2006-10-20 Thread Brad King
Peter Soetens wrote: > Quoting Brad King <[EMAIL PROTECTED]>: >> >> If BUILD_X is on and SOME_OPTION is set by the user, then BUILD_X is >> turned off, and then back on the user may expect SOME_OPTION to have >> retained its value. You can convert it to an INTERN

Re: [CMake] Setting the cmake compiler...

2006-10-20 Thread Brad King
Peter Soetens wrote: > The following happened to me (cmake version 2.4-patch 2) : > > $ mkdir build > $ cd build > $ cmake .. -DCMAKE_CXX_COMPILER=g++ -DCMAKE_CC_COMPILER=gcc > -- Check for working C compiler: gcc > -- Check for working C compiler: gcc -- works > -- Check size of void* > -- Check

Re: [CMake] CMake performance question

2006-10-20 Thread Brad King
Alexander Neundorf wrote: > #16: the line is parsed and a vector containing the arguments is created, > which is handed the cmSetCommand. This turns the vector into a string. > #17: the line is parsed, ${srcs} is expanded to the string in srcs and parsed > again into a vector. > #08: it evaluates

Re: [CMake] 64bit format

2006-10-23 Thread Brad King
Alexander Neundorf wrote: > Original-Nachricht > Datum: Fri, 20 Oct 2006 18:05:09 +0200 > Von: frederic heem <[EMAIL PROTECTED]> > An: cmake > Betreff: [CMake] 64bit format > >> Hi, >> While trying to convert ethereal build system from autotool to cmake, I >> came >> across a p

Re: [CMake] Disable optimizations for an individual project

2006-10-23 Thread Brad King
Reggie Burnett wrote: > What’s the best approach to disabling optimizations for a particular > project? We still want to use release settings just with optimizations > turned off and then just for that single project. Unfortunately there is no good approach for this right now. You can try removi

Re: [CMake] FIND_LIBRARY problem

2006-10-23 Thread Brad King
Abe Stephens wrote: > I have a CMake build for a project. The project contains several > directories (included with the SUBDIRS command). One of these > directories has the same name as a library that I search for using > FIND_LIBRARY. For some reason, cmake returns the path to this > subdirectory

<    2   3   4   5   6   7   8   9   10   11   >