Re: [CMake] User generated header file

2011-09-18 Thread C. Meissa
On So, 18.09.2011 16:37:31, Perry Ismangil wrote: On of our project, one of the header file included in the project is deliberately missing, the user have to manually create it before building for the first time. Do you want the user to manually add the header, or do you want cmake to create

Re: [CMake] Tell find_package to look only for 32bit libs (or specify the exact location)

2010-08-18 Thread C. Meissa
Hi, Am Mittwoch, 18. August 2010 schrieb Nils: 1. Is there a way to tell find_package to only look for 32bit libs? 2. Is there a way to tell find_package to look only in a specific path? Findpackage is just a normal cmake script running find_library. So you could copy FindGtest.cmake to your

Re: [CMake] Variable Propagation

2010-06-14 Thread C. Meissa
Hi again, Am Sonntag, 13. Juni 2010 schrieb Michael Hertling: SET(var1 ${var1} PARENT_SCOPE) Thank you; that completey solved it! Thanks again, C.M. ___ Powered by www.kitware.com Visit other Kitware open-source projects at

[CMake] Variable Propagation

2010-06-12 Thread C. Meissa
Hello list, A varible ${var1} can be accessed in any subdirectory’s CMakeLists.txt. However, if those files change ${var1} these changes are not accessible from the directory above. Is there any possibility of getting this done, anyway? I need to provide easy adding for source files to the

[CMake] Sourceless targets

2010-02-09 Thread C. Meissa
Hello Lists, I have lots of small libraries and sometime it is needed to unify them to a main program library e.g. libtest.so for my test program… I tried ADD_LIBRARY(test-mainlib SHARED ) SET_TARGET_PROPERTIES( test-mainlib PROPERTIES OUPUT_NAME libtest ) But this does not work due to Cannot

Re: [CMake] Sourceless targets

2010-02-09 Thread C. Meissa
Hello, thx for your reply… Am Dienstag, 9. Februar 2010 schrieb Michael Wild: What is it exactly you are trying to achieve? Well, you got me perfectly right… I like to have all symbols in my static libraries included as is… :-) IMHO this can't possibly work. I assume that you want to create a

Re: [CMake] how to write a cmakelist to call a function in another c or cxx file

2010-01-16 Thread C. Meissa
Hello Liu, However, after ccmake and then make, I got the error: main.cxx:(.text+0x10a): undefined reference to `func()' collect2: ld returned 1 exit status Can you put SET (CMAKE_VERBOSE_MAKEFILE TRUE) to your CMakeLists.txt to check what compiler command is run? bye C.M.

Re: [CMake] Overriding CMAKE_C_FLAGS on a per-directory basis

2010-01-12 Thread C. Meissa
Hello, Am Freitag, 8. Januar 2010 schrieb Marcel Loose: If you've set the flags -foo -bar using add_definitions(), instead of manipulating CMAKE_C_FLAGS directly, you can use set_directory_properties(PROPERTIES COMPILE_DEFINITIONS -baz) Currently I manually set CMAKE_Fortran_FLAGS_DEBUG

[CMake] target_link_libraries(lib1 lib2) - Fortran

2010-01-03 Thread C. Meissa
Hello, Is it possible to create a library which itself gets some of its implementation from another library? This comes because of some sources files of my library need modules of another source file in a subdirectory… Is it considered bad style to build a library out of appr. 5

[CMake] cmake clean

2010-01-02 Thread C. Meissa
Hello list, is there a make or cmake target which cleans all cmake generated files? (e.g. folder CMakeFiles, cmake_install.make, …) Would be nice not to be forced doing this manually… Thanks in advance C.M. ___ Powered by www.kitware.com Visit other

Re: [CMake] cmake clean

2010-01-02 Thread C. Meissa
Hi, Am Samstag, 2. Januar 2010 schrieb Pau Garcia i Quiles: No, there is not. Just use an out-of-source build. Great help. Thanks a lot! C.M. ___ Powered by www.kitware.com Visit other Kitware open-source projects at

[CMake] Fortran - Can’t find *.mod

2009-12-21 Thread C. Meissa
Hello List, I’m moving my fortran project to cmake… I have a src directory containing 3 dirs: main mod1 mod2 The main program in “main” is to be linked against the libs in “mod1” and “mod2”. Additionally “mod2” does need “mod1”, too. (use mod1). When compiling gfortran says: Fatal Error:

Re: [CMake] Fortran - Can’t find *.mod

2009-12-21 Thread C. Meissa
Hello again, You helped a lot… Thank You! I solved the ordering problem with “add_dependencies( … )” Thank you again. bye C.M. ___ Powered by www.kitware.com Visit other Kitware open-source projects at