[CMake] add_custom_target and Code Blocks generator

2011-01-19 Thread Dimitri Kaparis
Greetings, the Code Blocks generator is not adding to the project the sources, specified in the command. In order to add a group of header files to my project tree, I'm trying to implement the solution posted here: http://www.cmake.org/pipermail/cmake/2010-November/040537.html The target itself is

[CMake] Should CMake use /etc/ld.so.conf.d for find_library's CMAKE_SYSTEM_LIBRARY_PATH?

2011-01-19 Thread James Bigler
I'm noticing that on some systems they package the NVIDIA driver into different directories than the driver is typically installed. In order to make stuff link properly at run time these non-standard locations are added to /etc/ld.so.conf.d. I'm wondering if there is a reason not to use this info

Re: [CMake] CMake, CUDA, VS build issues

2011-01-19 Thread James Bigler
On Fri, Jan 14, 2011 at 11:05 AM, Patrick Charrier < patrick.charr...@igd.fraunhofer.de> wrote: > Hi all, > > I am experiencing some (random) reloading of VS-project files and > rebuilding when using the combination of CMake, Visual Studio and CUDA. > > Particularly when performing the following s

Re: [CMake] control order of custom target as a sub-part of a customized KDE build

2011-01-19 Thread Shawn Rutledge
Thanks for the suggestions! I was in a hurry to get something working, and the first working solution I found was to write a uic wrapper script which calls uic and then modifies the output. This line makes it substitute my wrapper for uic: set(QT_UIC_EXECUTABLE ${CMAKE_SOURCE_DIR}/tools/uic-wrap

Re: [CMake] control order of custom target as a sub-part of a customized KDE build

2011-01-19 Thread Alexander Neundorf
On Tuesday 04 January 2011, Shawn Rutledge wrote: > I am building a KDE control panel plugin, and there is a requirement > to use a different translation mechanism rather than the default Qt > "tr" macros. So I want to post-process my ui_*.h files to replace > lines like this > > ClearSite

Re: [CMake] Help building static libs w/cmake 2.8 and llvm/clang on Windows

2011-01-19 Thread Alexander Neundorf
On Tuesday 04 January 2011, Michael Maul wrote: > Build is eclipse-cdt/nmake on windows 7 > > "C:\Program Files (x86)\CMake 2.8\bin\cmake.exe" -E > cmake_link_script CMakeFiles\MathFunctions.dir\link.txt --verbose=yes > > CMAKE_AR-NOTFOUND cr MathFunctions.lib > CMakeFiles/MathFunctions.di

Re: [CMake] How to make a ProjectConfig.cmake

2011-01-19 Thread Alexander Neundorf
On Thursday 30 December 2010, Ian Monroe wrote: > On Thu, Dec 30, 2010 at 08:08, Michael Hertling wrote: > > On 12/30/2010 11:33 AM, Ian Monroe wrote: > >> To create my QyotoConfig.cmake I need to know the full path of a > >> library so that I can set a variable like QYOTO_LIBRARY. > >> > >> This

Re: [CMake] How to make a ProjectConfig.cmake

2011-01-19 Thread Alexander Neundorf
On Thursday 30 December 2010, Michael Wild wrote: > On 12/30/2010 11:33 AM, Ian Monroe wrote: > > To create my QyotoConfig.cmake I need to know the full path of a > > library so that I can set a variable like QYOTO_LIBRARY. > > > > This is pretty standard requirement right? Its what we're supposed

Re: [CMake] check_function_exists frailty

2011-01-19 Thread Jack Poulson
On Wed, Jan 19, 2011 at 3:27 AM, Eric Noulard wrote: > 2011/1/19 Jack Poulson : > > I have no idea why this would occur, but with CMake 2.8.2 on x86_64 I'm > > getting strange behavior with check_function_exists. Namely, if I perform > > the sequence > > set(CMAKE_REQUIRED_LIBRARIES ${MATH_LIBS})

Re: [CMake] Adding support for Absoft Fortran compilers in CMake

2011-01-19 Thread Brad King
On 01/19/2011 10:32 AM, Tony Goelz wrote: > My apologies in advance if this is not the correct place to start my inquiry. This is a good place to start. This was discussed briefly: http://www.cmake.org/pipermail/cmake/2009-August/031688.html but left off here: http://www.cmake.org/piperma

Re: [CMake] Adding support for Absoft Fortran compilers in CMake

2011-01-19 Thread Michael Jackson
That is awesome that you want to support CMake. I have some collaborators that use Absoft and want to switch to CMake but can not due to some issues. I think a great place to start would be this link: http://www.cmake.org/pipermail/cmake/2009-September/031730.html ___

Re: [CMake] cpack bundle on osx

2011-01-19 Thread Michael Jackson
You will need to look into the "BundleUtilities" functionality, specifically the "fixup_bundle()" function. This will copy and fixup dependent dylibs/frameworks needed by your project. There is a short example that uses Qt that you can download. You will also probably need to properly configu

[CMake] Adding support for Absoft Fortran compilers in CMake

2011-01-19 Thread Tony Goelz
My apologies in advance if this is not the correct place to start my inquiry. I am looking for information on getting support for Absoft's Fortran compilers on Linux, Windows and OS X added to a future release of CMake. Ideally, the Absoft compilers would be supported in the same manner that ot

Re: [CMake] How to query compiler definitions?

2011-01-19 Thread SF Markus Elfring
Why not? That's mostly equivalent to doing it based on -DNDEBUG (which is automatically defined for Release and MinSizeRel). I would like to be precise here. Do any configurations exist in the software development world where the build type "Release" does not include a definition for this prep

[CMake] cpack and install locations

2011-01-19 Thread Dominique Fober
Hi, I have a strange and non consistent behavior using cmake and cpack. Here is my 'install' config: install ( TARGETS ${target} LIBRARY DESTINATION lib ARCHIVE DESTINATION lib PUBLIC_HEADER DESTINATION include/myFolder ) the target is a shared library with associated pub

Re: [CMake] How to query compiler definitions?

2011-01-19 Thread Michael Wild
On 01/19/2011 03:45 PM, SF Markus Elfring wrote: >> set_source_files_properties(debug_funcs.c PROPERTIES >>EXCLUDE_FROM_CONFIGURATIONS "Release;MinSizeRel") > > I do not want to exclude this file based on the value of the variable > "CMAKE_BUILD_TYPE". ;-) Why not? That's mostly equivalent

Re: [CMake] How to query compiler definitions?

2011-01-19 Thread SF Markus Elfring
set_source_files_properties(debug_funcs.c PROPERTIES EXCLUDE_FROM_CONFIGURATIONS "Release;MinSizeRel") I do not want to exclude this file based on the value of the variable "CMAKE_BUILD_TYPE". ;-) I don't think it would make to do this based on preprocessor definitions. It seems that

Re: [CMake] VS Preprocessor Definitions

2011-01-19 Thread Nehme Bilal
ok I found it: set_property( TARGET my_target PROPERTY COMPILE_DEFINITIONS IL_STD ) Nehme On Tue, Jan 18, 2011 at 11:44 AM, Nehme Bilal wrote: > Hello, > > I am trying to use CMake to build a project that uses CPLEX. The cplex > compiling instructions says: > o Add IL_STD to th

Re: [CMake] Problems with MinGW + BundleUtilities

2011-01-19 Thread David Cole
Send us the full output of the call to fixup_bundle. Is the output different if you start from a clean build tree, and run fixup_bundle for the first time? On Wed, Jan 19, 2011 at 5:35 AM, NoRulez wrote: > The two files are also in the QT_BINARY_DIR > > > > The two directories (QT_BINARY_DIR an

Re: [CMake] How to query compiler definitions?

2011-01-19 Thread Michael Wild
On 01/19/2011 02:41 PM, SF Markus Elfring wrote: >> You don't seem to understand the difference between CMake-time and Make- >> (or build-) time. > > I understand that there can be differences between the time of > configuration and the applied generation. I guess that we have got > different expe

Re: [CMake] How to query compiler definitions?

2011-01-19 Thread SF Markus Elfring
You don't seem to understand the difference between CMake-time and Make- (or build-) time. I understand that there can be differences between the time of configuration and the applied generation. I guess that we have got different expectations about the introspection capabilities of the CMake

Re: [CMake] How to query compiler definitions?

2011-01-19 Thread Michael Wild
Just tried out my last approach, and found out that it doesn't work. The executable target always depends on the library target, irrespective of the build configuration. On 01/19/2011 11:50 AM, SF Markus Elfring wrote: >> For multi-config IDE's you *don't know* whether NDEBUG is defined or >> not

[CMake] cpack bundle on osx

2011-01-19 Thread Yngve Inntjore Levinsen
Dear fellow cmake users, I am trying to create a bundle of my project that I build using CMake. I have tried using the DragNDrop generator, which works to some extent. I do manage to create a .app folder which contains the one binary that is the outcome of the project in the Contents/MacOS fol

[CMake] eclipse possible bug

2011-01-19 Thread Andrea Galeazzi
suppose I have a project with: add_subdirectory("path/lib1" "${CMAKE_CURRENT_BINARY_DIR}/ib1") when I change a source of lib1 and click on build over the eclipse project, eclipse doesn't build anything. If I change a source of the main project it launches the build correctly. I also tried to te

Re: [CMake] Component support in FindPackageHandleStandardArgs

2011-01-19 Thread Johannes Zarl
On 01/18/2011 at 20:54, Alexander Neundorf wrote: > On Monday 13 December 2010, Johannes Zarl wrote: >> The three FPHSA calls from above could be written using this syntax as: >> FPHSA(XXX REQUIRED_VARS XXX_LIBRARY XXX_INCLUDE_DIR >> COMPONENTS >> COMPONENT YYY XXX_YYY_LIBRARY XXX_YYY_INC

Re: [CMake] Weird behaviour of functions with list arguments

2011-01-19 Thread Johannes Zarl
On 01/18/2011 at 20:51, Alexander Neundorf wrote: > On Saturday 11 December 2010, Johannes Zarl wrote: >> So ARGV0 is not the same as the first argument of ARGV. Why? Is it that >> the ARGV and ARGN lists get flattened, but the ARGVx are assigned before >> that? >> >> How can I safely access the

Re: [CMake] Fixed ProjectGUID

2011-01-19 Thread Sören Freudiger
Okay. As it seems it's very simpel to change see GUID without any patch: set_property(CACHE ${target_name}_GUID_CMAKE PROPERTY VALUE ${MY_GUID} ) Original-Nachricht > Datum: Fri, 7 Jan 2011 22:26:31 +0100 > Von: Pau Garcia i Quiles > An: David Cole > CC: "Sören Freudiger" ,

Re: [CMake] How to query compiler definitions?

2011-01-19 Thread SF Markus Elfring
For multi-config IDE's you *don't know* whether NDEBUG is defined or not at CMake-time. I imagine that the build system could keep control on all passed compilation parameters if calls for generation commands would be intercepted (by CMake). Does it get any feedback for changes of this prepro

Re: [CMake] Problems with MinGW + BundleUtilities

2011-01-19 Thread NoRulez
The two files are also in the QT_BINARY_DIR The two directories (QT_BINARY_DIR and QT_LIBRARY_DIR ) are the directories where the dlls are stored. So, what should I do now to get it working? Von: David Cole [mailto:david.c...@kitware.com] Gesendet: Mittwoch, 19. Jänner 2011 11:23 An

Re: [CMake] Problems with MinGW + BundleUtilities

2011-01-19 Thread David Cole
Never mind. It's QT_BINARY_DIR and QT_LIBRARY_DIR, right there in the first line of code. So add to that variable the actual directories where all of your dlls live and it should work. i.e. -- what directories are the following files in? libgcc_s_dw2-1.dll mingwm10.dll They also need to be i

Re: [CMake] Problems with MinGW + BundleUtilities

2011-01-19 Thread David Cole
And what is the value of "DIRS"? On Wed, Jan 19, 2011 at 3:40 AM, NoRulez wrote: > The code I use to create the bundle is as followed > > > > SET(DIRS ${QT_BINARY_DIR} ${QT_LIBRARY_DIR}) > > SET(APPS "${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${PROJECT_NAME}.exe") > > # Not work

Re: [CMake] check_function_exists frailty

2011-01-19 Thread Eric Noulard
2011/1/19 Jack Poulson : > I have no idea why this would occur, but with CMake 2.8.2 on x86_64 I'm > getting strange behavior with check_function_exists. Namely, if I perform > the sequence > set(CMAKE_REQUIRED_LIBRARIES ${MATH_LIBS}) > check_function_exists(daxpy HAVE_DAXPY) > whether or not /usr/

Re: [CMake] How to query compiler definitions?

2011-01-19 Thread Michael Wild
On 01/19/2011 09:50 AM, SF Markus Elfring wrote: >> Why don't you include the check for NDEBUG in in your "debug-sources"? > > This is the case already. > > >> The time you'll waste compiling these files will be negligible, and it >> would work with mult-config IDE's. > > I find this view debat

Re: [CMake] How to query compiler definitions?

2011-01-19 Thread SF Markus Elfring
Why don't you include the check for NDEBUG in in your "debug-sources"? This is the case already. The time you'll waste compiling these files will be negligible, and it would work with mult-config IDE's. I find this view debatable. I would appreciate if I can express in the build specificat

Re: [CMake] Problems with MinGW + BundleUtilities

2011-01-19 Thread NoRulez
The code I use to create the bundle is as followed SET(DIRS ${QT_BINARY_DIR} ${QT_LIBRARY_DIR}) SET(APPS "${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${PROJECT_NAME}.exe") # Not working (Also when trying this in the INSTALL(CODE # SET(APPS "${CMAKE_RUNTIME_OUTPUT_DIRECTO

Re: [CMake] How to query compiler definitions?

2011-01-19 Thread Michael Wild
On 01/19/2011 09:30 AM, SF Markus Elfring wrote: > Hello, > > I know that some source code will only be needed in my example project > if the preprocessor symbol "NDEBUG" is not defined. > This is usual for conditional compilation. The corresponding bit of > debug code calls functions which are im

[CMake] How to query compiler definitions?

2011-01-19 Thread SF Markus Elfring
Hello, I know that some source code will only be needed in my example project if the preprocessor symbol "NDEBUG" is not defined. This is usual for conditional compilation. The corresponding bit of debug code calls functions which are implemented in a few other source files. Now I am looking fo