Re: [CMake] install target and DEBUGRT_POSTFIX

2009-03-02 Thread Philip Lowman
On Fri, Feb 27, 2009 at 9:32 AM, daniel trindade wrote: > Hi, > > I'm having problems with the install(TARGETS ... command. In my project i > set the property DEBUGRT_POSTFIX "_d" on each target so the files ends with > "_d". This works fine, but when the command > > INSTALL(TARGETS mytar

[CMake] Overriding build rules to ignore CMAKE__FLAGS_ - is it possible?

2009-03-02 Thread Maciej Mrozowski
Hi I'm working on general purpose CMake applications building facility (in fact fixing existing one - part of Gentoo build system) and I need some way of filtering out hardcoded "insane" CMAKE_BUILD_TYPE-specific compiler flags still being able to preserve user specified CMAKE_BUILD_TYPE (to pr

Re: [CMake] Can't get Boost_${COMPONENT}_LIBRARY to work

2009-03-02 Thread E. Wing
> Do you feel that I'm better off using Boost_LIBRARIES? >> > > If you're comfortable with maintaining the dependencies where they are > needed I would recommend doing it the way you were planning on and use > Boost__LIBRARY, it also handles the debug/optimized links for > Visual Studio. I only me

Re: [CMake] Find* Modules and unusual package location

2009-03-02 Thread Philip Lowman
On Mon, Mar 2, 2009 at 9:59 AM, Adolfo Rodríguez wrote: > Hi all, > > After reading the recently added wiki > docabout improving > CMake Find* modules, I have a style question. In the section > that discusses finding packages in unusual l

Re: [CMake] Erasing a compiler flags

2009-03-02 Thread Philip Lowman
On Mon, Mar 2, 2009 at 7:37 AM, Leopold Palomo Avellaneda wrote: > Hi, > > I have a problem with one project. There's one file that doesn't accept a > some > compiler flags because g++ then has problems (templates, etc). > > So, I would like to set with another valuer the CMAKE_CXX_FLAGS_RELEASE a

Re: [CMake] Can't get Boost_${COMPONENT}_LIBRARY to work

2009-03-02 Thread Philip Lowman
On Mon, Mar 2, 2009 at 9:39 PM, E. Wing wrote: > >> Also, one additional thing. If you use Boost_LIBRARIES it will >> automatically contain all of the libraries you specify after the COMPONENTS >> line (including debug/optimized keywords). This is often fine for many >> Boost use-cases. If it'

Re: [CMake] Can't get Boost_${COMPONENT}_LIBRARY to work

2009-03-02 Thread E. Wing
Thanks for the replies. Capitalization was indeed the problem. >> FIND_PACKAGE(Boost 1.3.6 COMPONENTS date_time filesystem regex system) > > The "1.3.6" is a typo, btw. You probably want "1.36" or whatever minimum > version you need to use boost > >> Thanks for pointing that out. I probably wo

Re: [CMake] Can't get Boost_${COMPONENT}_LIBRARY to work

2009-03-02 Thread Philip Lowman
On Mon, Mar 2, 2009 at 7:20 PM, E. Wing wrote: > I want to link something against the date_time library in boost. The > comments in the FindBoost.cmake module imply that I > should be able to use something like ${Boost_date_time_LIBRARY}. But the > variable is always empty for me. > > Here is my

Re: [CMake] Can't get Boost_${COMPONENT}_LIBRARY to work

2009-03-02 Thread Michael Jackson
Probably should be ${Boost_DATE_TIME_LIBRARY} _ Mike Jackson mike.jack...@bluequartz.net BlueQuartz Softwarewww.bluequartz.net Principal Software Engineer Dayton, Ohio On Mar 2, 2009, a

Re: [CMake] Any experiences with ICU genrb?

2009-03-02 Thread E. Wing
On Mon, Mar 2, 2009 at 7:55 AM, Gerhard Grimm wrote: > Hi Eric, > > genrb does not create libraries to link against, but binary resource files > that will be loaded by an application using ICU at runtime. > Here's an example how we are using genrb in our project: > > IcuResources(cp1252 root d

Re: [CMake] FindCxxTest doesn't look in CXXTEST_INCLUDE_DIR for helper executables (patch included)

2009-03-02 Thread Philip Lowman
On Mon, Mar 2, 2009 at 6:33 PM, Tyler Roscoe wrote: > FindCxxTest is a simple module. Other than a helper macro, it mostly > just does: > > find_path(CXXTEST_INCLUDE_DIR cxxtest/TestSuite.h) > find_program(CXXTEST_PERL_TESTGEN_EXECUTABLE cxxtestgen.pl) > find_program(CXXTEST_PYTHON_TESTGEN_EXECUT

[CMake] Can't get Boost_${COMPONENT}_LIBRARY to work

2009-03-02 Thread E. Wing
I want to link something against the date_time library in boost. The comments in the FindBoost.cmake module imply that I should be able to use something like ${Boost_date_time_LIBRARY}. But the variable is always empty for me. Here is my code: SET(Boost_USE_STATIC_LIBS ON) SET(Boost_USE_MULTITHR

[CMake] FindCxxTest doesn't look in CXXTEST_INCLUDE_DIR for helper executables (patch included)

2009-03-02 Thread Tyler Roscoe
FindCxxTest is a simple module. Other than a helper macro, it mostly just does: find_path(CXXTEST_INCLUDE_DIR cxxtest/TestSuite.h) find_program(CXXTEST_PERL_TESTGEN_EXECUTABLE cxxtestgen.pl) find_program(CXXTEST_PYTHON_TESTGEN_EXECUTABLE cxxtestgen.py) It figures out where CxxTest is installed, b

Re: [CMake] making a FooConfig.cmake with components

2009-03-02 Thread Clinton Stimpson
Philip Lowman wrote: On Fri, Feb 27, 2009 at 7:11 PM, Clinton Stimpson mailto:clin...@elemtech.com>> wrote: I'm writing a FooConfig.cmake to support find_package(Foo COMPONENTS A B C) I see that Foo_FOUND is always TRUE no matter what I try to set to from FooConfig.cmake.

Re: [CMake] debug, optimized, and custom

2009-03-02 Thread Dmytro Ovdiienko
Hi, Suppose, IMPORTED libraries should help. Following is text from CMake manual: Higher granularity may be achieved for per-configuration rules by creating and linking to IMPORTED library targets. See the IMPORTED mode of the add_library command for more information. See also http://www.cmake.o

Re: [CMake] shared lib on mac

2009-03-02 Thread Bill Hoffman
Alexander Neundorf wrote: On Monday 02 March 2009, Nicolas Slythe (Intern) wrote: SET(TARGET_SOURCE ./utils/utils.cxx ./test/test.cxx ./test/test1.cxx ) ADD_DEFINITIONS ( -DK_NODLL -DK_DISABLE_UI ) ADD_LIBRARY ( test SHARED ${TARGET_SOURCE} ) I don't have a

Re: [CMake] shared lib on mac

2009-03-02 Thread Alexander Neundorf
On Monday 02 March 2009, Nicolas Slythe (Intern) wrote: > SET(TARGET_SOURCE > ./utils/utils.cxx > ./test/test.cxx > ./test/test1.cxx > ) > > ADD_DEFINITIONS ( > -DK_NODLL > -DK_DISABLE_UI > ) > > ADD_LIBRARY ( > test > SHARED > ${TARGET_SOURCE} > ) I don't have a

Re: [CMake] debug, optimized, and custom

2009-03-02 Thread Hendrik Sattler
Am Montag 02 März 2009 18:24:32 schrieb Dmytro Ovdiienko: > if I have several configurations (e.g. /MT, /MTd, /MD, /MDd), how can I > pass additional libraries to the target_link_libraries? I have two > optimized libaries. One for /MT and one for /MD. That depends if you want to link statically or

Re: [CMake] shared lib on mac

2009-03-02 Thread Nicolas Slythe (Intern)
SET(TARGET_SOURCE ./utils/utils.cxx ./test/test.cxx ./test/test1.cxx ) ADD_DEFINITIONS ( -DK_NODLL -DK_DISABLE_UI ) ADD_LIBRARY ( test SHARED ${TARGET_SOURCE} ) -Original Message- From: cmake-boun...@cmake.org [mailto:cmake-boun...@cmake.org] On Behalf

Re: [CMake] [CTest] DLLs, scripts, and build types

2009-03-02 Thread Gregory Sharp
> Have you considered tweaking your rpath settings? This > linkhas proved > to be > very useful to me in the past. Thank you for the suggestion. I'm pretty sure that RPATH is only for Unix, however, so I use the script as in step (3) to set PATH.

Re: [CMake] shared lib on mac

2009-03-02 Thread Alexander Neundorf
On Monday 02 March 2009, Nicolas Slythe (Intern) wrote: > When I add a library target with add_library command > If my lib type is SHARED I get this error at link time on apple "no input > files" and if I look at the command there is realy no input file ".o" > specified. And if the lib is static e

[CMake] shared lib on mac

2009-03-02 Thread Nicolas Slythe (Intern)
When I add a library target with add_library command If my lib type is SHARED I get this error at link time on apple "no input files" and if I look at the command there is realy no input file ".o" specified. And if the lib is static everything work fine with the same source file. Is there some

[CMake] ccmake gets all squirrelly over which C++ compiler to use.

2009-03-02 Thread kent williams
Version 2.6 patch 2 on OS X and Linux -- you know your code is portable when the same issue happens on multiple platforms! Here's the scenario -- a guy in our department was having trouble getting ccmake to generate makefiles. My diagnosis was pretty simple: His project depended on both ITK and V

[CMake] how to compile vtkfltk

2009-03-02 Thread Wième Gadacha
Hello, i try to compile the library vtkfltk with cmake but i don't manage. in fact, i have some fields that i don't know what to put in(fltk_include_directory,fltk_images_library,fltk_GL_library,fltk_forms_library,fltk_base_library...). please could you help me with a tuto or else where i can get

Re: [CMake] Git support status in CMake/CTest/CDash

2009-03-02 Thread Brad King
Félix C. Morency wrote: I want to know if there are any progress on git support for CMake/CTest/CDash. Is this planned to be released "soon"? You can track progress here: http://www.cmake.org/Bug/view.php?id=7541 I have an implementation mostly done, but not quite ready for publishing to th

Re: [CMake] debug, optimized, and custom

2009-03-02 Thread Dmytro Ovdiienko
All, if I have several configurations (e.g. /MT, /MTd, /MD, /MDd), how can I pass additional libraries to the target_link_libraries? I have two optimized libaries. One for /MT and one for /MD. Thanks, Dima 2009/2/25 > On Wed, Feb 25, 2009 at 1:38 AM, Hendrik Sattler > wrote: > debug and optim

[CMake] CPack File Association

2009-03-02 Thread Thomas Burdick
I saw a bug closed that allows one to associate file extensions it looks like, does this mean I can now associate file types with executables in windows as well? If so, how? -Tom ___ Powered by www.kitware.com Visit other Kitware open-source projects at

Re: [CMake] Any experiences with ICU genrb?

2009-03-02 Thread Gerhard Grimm
Hi Eric, genrb does not create libraries to link against, but binary resource files that will be loaded by an application using ICU at runtime. Here's an example how we are using genrb in our project: macro(IcuResources Encoding) set(${CurrPkg}_resdir ${CMAKE_INSTALL_PREFIX}/lang/${CurrPkg})

[CMake] Git support status in CMake/CTest/CDash

2009-03-02 Thread Félix C . Morency
Hi, I want to know if there are any progress on git support for CMake/CTest/CDash. Is this planned to be released "soon"? Regards, Félix C. Morency ___ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opens

[CMake] Find* Modules and unusual package location

2009-03-02 Thread Adolfo Rodríguez
Hi all, After reading the recently added wiki docabout improving CMake Find* modules, I have a style question. In the section that discusses finding packages in unusual locations, it is suggested that "Each module should have an environment

Re: [CMake] Avoiding a relink

2009-03-02 Thread Brad King
Philip Lowman wrote: On Fri, Feb 27, 2009 at 5:24 PM, Brad King Try removing an object file from a shared library, rebuild just that library, and then run the executable (which still exists). It will break at runtime, but if you try relinking the executable it will fail at bu

[CMake] copying directory structure : path issue

2009-03-02 Thread Benoit Callebaut
Hello, I need to copy a directory structure into a MAC OSX bundle at build time and to generate a configuration file containing the file-paths of those file (or at least the directories where they are located). I can up to now copy the files in the bundle but CMAKE destroys the directory s

[CMake] Erasing a compiler flags

2009-03-02 Thread Leopold Palomo Avellaneda
Hi, I have a problem with one project. There's one file that doesn't accept a some compiler flags because g++ then has problems (templates, etc). So, I would like to set with another valuer the CMAKE_CXX_FLAGS_RELEASE and CMAKE_CXX_FLAGS_RELWITHDEBINFO for an _specific_ target. I have looked i

Re: [CMake] flex/bison modules?

2009-03-02 Thread André EBERSOLD
Hello Juan, Several years ago, I wrote some cmake rules to work with lex and yacc on Linux and windows. Hop it will help you. Andre E. Below the macro : # # here, I will put some macro # for flex and yacc transformation # # Author EBERSOLD Andre # Created 6/7/2007 # IF(UNIX) SET(LEXER

Re: [CMake] [CTest] DLLs, scripts, and build types

2009-03-02 Thread Adolfo Rodríguez
Have you considered tweaking your rpath settings? This linkhas proved to be very useful to me in the past. Cheers, Adolfo On Sun, Mar 1, 2009 at 10:34 PM, Gregory Sharp wrote: > > Hello, I ran into a problem with getting the CTest to run when > l