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

2009-03-02 Thread Adolfo Rodríguez
Have you considered tweaking your rpath settings? This linkhttp://www.cmake.org/Wiki/CMake_RPATH_handlinghas proved to be very useful to me in the past. Cheers, Adolfo On Sun, Mar 1, 2009 at 10:34 PM, Gregory Sharp gregsharp@yahoo.comwrote: Hello, I ran into a problem with getting the

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

[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

[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

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 brad.k...@kitware.com 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

[CMake] Find* Modules and unusual package location

2009-03-02 Thread Adolfo Rodríguez
Hi all, After reading the recently added wiki dochttp://www.cmake.org/Wiki/CMake:Improving_Find*_Modulesabout 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

[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

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] 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

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 jessepe...@gmail.com On Wed, Feb 25, 2009 at 1:38 AM, Hendrik Sattler

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 the

[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

[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

[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

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

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

2009-03-02 Thread Gregory Sharp
Have you considered tweaking your rpath settings? This linkhttp://www.cmake.org/Wiki/CMake_RPATH_handlinghas 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 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] 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 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 mac here, but

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

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

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 clin...@elemtech.com 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

[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,

[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)

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 ty...@cryptio.net 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)

Re: [CMake] Any experiences with ICU genrb?

2009-03-02 Thread E. Wing
On Mon, Mar 2, 2009 at 7:55 AM, Gerhard Grimm ggr...@detec.de 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:

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,

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 ewmail...@gmail.com 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.

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 would have

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 ewmail...@gmail.com 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

Re: [CMake] Erasing a compiler flags

2009-03-02 Thread Philip Lowman
On Mon, Mar 2, 2009 at 7:37 AM, Leopold Palomo Avellaneda l...@alaxarxa.netwrote: 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

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 dof...@gmail.com wrote: Hi all, After reading the recently added wiki dochttp://www.cmake.org/Wiki/CMake:Improving_Find*_Modulesabout improving CMake Find* modules, I have a style question. In the section that discusses finding packages in

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_COMPONENT_LIBRARY, it also handles the debug/optimized links for Visual Studio. I only

[CMake] Overriding build rules to ignore CMAKE_LANG_FLAGS_BUILD_TYPE - 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