Re: [CMake] cmake end user vs. developer rpath handling

2019-10-10 Thread DIXON, MARK C.
On Thu, 10 Oct 2019, Eric Noulard wrote: ... > with patchelf is works with an intriguing warning: > warning: working around a Linux kernel bug by creating a hole of 2093056 > bytes in ‘/path/to/executable’ > > which seems to be a resolved issue: > https://github.com/NixOS/patchelf/issues/92 > > aft

Re: [CMake] cmake end user vs. developer rpath handling

2019-10-10 Thread DIXON, MARK C.
On Thu, 10 Oct 2019, Eric Noulard wrote: ... > No rpath and using "only" LD_LIBRARY_PATH is not feasible in that case? > Removing rpath is easy; chrpath -d lib_or_exe You could but, to avoid a maintenance headache, you'd normally end up getting the environment module to load any prereq environmen

Re: [CMake] cmake end user vs. developer rpath handling

2019-10-10 Thread DIXON, MARK C.
On Thu, 10 Oct 2019, Eric Noulard wrote: ... > No they can't because the maximum size is burried into the binary ELF file, > that why CMake "reserve" some space with many ";;;" in order to replace > BUILD_RPATH with INSTALL_RPATH when doing > 'install'. Hi Eric, Interesting - any ideas on how big

Re: [CMake] cmake end user vs. developer rpath handling

2019-10-10 Thread DIXON, MARK C.
On Wed, 9 Oct 2019, Aaron Cohen wrote: > Is it not feasible to just let the build system do whatever it is going to > and use "chrpath" or "patchelf" to change the rpath after-the-fact? Thanks for the suggestion, but I need to add directories to the rpath: I believe that neither utility allows i

Re: [CMake] cmake end user vs. developer rpath handling

2019-10-09 Thread DIXON, MARK C.
On Wed, 9 Oct 2019, Craig Scott wrote: ... >>> Is there a way to reliably add to, or at least override, the developer's >>> rpath in any cmake-built software? >> >> Short of editing the build system scripts? I doubt... > > The CMAKE_INSTALL_RPATH variable is used to initialise the INSTALL_RPATH > p

Re: [CMake] cmake end user vs. developer rpath handling

2019-10-09 Thread DIXON, MARK C.
On Wed, 9 Oct 2019, Zakrzewski, Jakub wrote: ... > That "something" seems to be line 257: set(CMAKE_INSTALL_RPATH > "${CMAKE_INSTALL_PREFIX}/${LIB_INSTALL_DIR}") There's a second something that's adding boost's library directory. I'm guessing this is maybe coming from my copy of cmake's boost de

[CMake] cmake end user vs. developer rpath handling

2019-10-08 Thread DIXON, MARK C.
Hi, I install lots of software packages under Linux and, increasingly, they use cmake instead of other methods (congratulations!) Frustratingly for me, I seem to keep ending up in a fight with the various developer's cmake config files over what rpath should be set, among other things. Obvious

[CMake] ENOEXEC exit code from ctest on FreeBSD

2018-07-08 Thread Anoop C S
. [1] https://git.cryptomilk.org/users/asn/socket_wrapper.git/log/?h=master-fix Thanks, Anoop C S. -- Powered by www.kitware.com Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Kitware offers various services to support the CMake community. For

[CMake] error on using cmake

2017-07-27 Thread c
Hello. I tried to compile LTP using cmake on Windows 10 with Visual Studio compiler ... However, "CMakeOutput.log" says that The system is: Windows - 10.0.14393 - AMD64. And I Installed Windows 10 SDK but the same error keeps occurring. Hope your help. Waiting for your reply. _201707201

[CMake] test dependencies and CTest -I

2016-08-19 Thread Lowekamp, Bradley (NIH/NLM/LHC) [C]
Hello, I am trying to get ctest working on CircleCI with multiple concurrent containers. The following command works for many cases: ctest -j 2 -I ${CIRCLE_NODE_INDEX},,${CIRCLE_NODE_TOTAL} unless there are dependencies specified between tests via something like: set_property(TEST B APPEND

Re: [CMake] Problem building CMake with system OPENSSL

2016-06-08 Thread Lowekamp, Bradley (NIH/NLM/LHC) [C]
Thanks you for the fix and tips! Brad From: Brad King [brad.k...@kitware.com] Sent: Tuesday, June 07, 2016 3:13 PM To: Lowekamp, Bradley (NIH/NLM/LHC) [C] Cc: CMake@cmake.org Subject: Re: [CMake] Problem building CMake with system OPENSSL On 06/07/2016 10

Re: [CMake] Problem building CMake with system OPENSSL

2016-06-07 Thread Lowekamp, Bradley (NIH/NLM/LHC) [C]
3.6.0-rc1/Utilities/cmlibarchive/libarchive/archive_write_set_format_zip.c:52:0: /tmp/cmake-3.6.0-rc1/Utilities/cmlibarchive/libarchive/archive_cryptor_private.h:102:25: fatal error: openssl/evp.h: No such file or directory #include ^ compilation terminated. Thanks for

Re: [CMake] Problem building CMake with system OPENSSL

2016-06-06 Thread Lowekamp, Bradley (NIH/NLM/LHC) [C]
gt; 2016-06-03 10:27 GMT-04:00 Lowekamp, Bradley (NIH/NLM/LHC) [C] > : >> Hello, >> >> I am trying to build CMake on an old system with a new version of openssl. >> My build script was working with CMake 3.4 but is not working with 3.5.2 or >> current master.

[CMake] Problem building CMake with system OPENSSL

2016-06-03 Thread Lowekamp, Bradley (NIH/NLM/LHC) [C]
make -j ${NPROC} && ./bin/cmake -DCMAKE_BUILD_TYPE:STRING=Release -DCMAKE_USE_OPENSSL:BOOL=ON -DOPENSSL_ROOT_DIR:PATH=/usr/local/ssl -DCMAKE_USE_SYSTEM_CURL:BOOL=OFF . && make -j${NPROC} ERROR MESSAGE: 41%] Building C object Utilities/cmlibarchive/libarchive/CMakeFiles/cmlibar

[CMake] Give clear warning if --build, -E or --find-package

2016-05-10 Thread Claudio C
I have seen this issue has been closed: https://cmake.org/Bug/view.php?id=16093#bugnotes I understand the synopsis shows that those "options" (so they are called) have to be given as first, but I think then it should be made explicit in the option description and/or cmake should give a clear error

Re: [CMake] No cmake.exe in latest CMake windows binaries

2016-05-10 Thread Claudio C
I don't know the package on the website has been updated in the meantime, but cmake.exe and cmake-gui.exe are there now, in the bin subfolder. Message: 1 Date: Fri, 6 May 2016 22:32:01 +0100 From: Miklos Espak To: "cmake@cmake.org" Subject: [CMake] No cmake.exe in latest CMake windows binaries

Re: [CMake] how to really change CMake linker

2016-04-20 Thread Claudio C
The proposed solution does not seem to work. There is now an issue related https://cmake.org/Bug/view.php?id=16059 -- Ing. Claudio Caraffi, PhD E-Mail: claudio.cara...@gmail.com -- Powered by www.kitware.com Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/W

[CMake] Module CheckIncludeFile should notify in case of flag errors

2016-04-20 Thread Claudio C
I recently struggled with the command CheckIncludeFile (and siblings) while working with a custom toolchain. Even if I was setting the necessary CMAKE_SYSROOT, include_directories and even CMAKE_REQUIRED_INCLUDES, the commands would report a given header was not found. When I hacked into: CheckInc

[CMake] CMake 3.2.2 generates too many virtual folders for Codeblocks project

2015-06-01 Thread c roman
|__GNU-CXX.cmake || ||__GNU.cmake || | |__GNU.cmake || | || |__[Platform] || | |__Win

[CMake] Issue parsing command lines with '=' in value of defined variables

2015-01-13 Thread Lowekamp, Bradley (NIH/NLM/LHC) [C]
S "ARGV${i}: ${CMAKE_ARGV${i}}") endforeach() message(STATUS "ExternalData file: ${file}") Some runs: $ cmake -Dfile=good.tif -P EqualTest.cmake -- ARGV0: c:\Program Files (x86)\CMake 2.8\bin\cmake.exe -- ARGV1: -Dfile=good.tif -- ARGV2: -P -- ARGV3: EqualTest.cmake -- ARGV4: -- Ex

[CMake] find_package config mode question

2014-04-18 Thread Mclendon, William C III
Hi, I'm trying to set up a project pulls in information from another CMake project (include dirs, libraries, etc.). As I understand it the right thing to do is create a config.cmake.in in the source project and then use find_package in config mode to pull in the information to the dependent pr

Re: [CMake] CMake, Qt4, Ubuntu and Phonon

2011-11-23 Thread Félix C . Morency
roach? Regards, -- Félix C. Morency, M.Sc. Plateforme d’analyse et de visualisation d’images Centre Hospitalier Universitaire de Sherbrooke Centre de recherche clinique Étienne-Le Bel Local Z5-3031 | 819.346.1110 ext 16634 On Tue, Nov 22, 2011 at 5:11 PM, Clinton Stimpson wrote: > On

Re: [CMake] CMake, Qt4, Ubuntu and Phonon

2011-11-22 Thread Félix C . Morency
patch the FindQt4 module if the community agrees on this solution. Regards, -- Félix C. Morency, M.Sc. Plateforme d’analyse et de visualisation d’images Centre Hospitalier Universitaire de Sherbrooke Centre de recherche clinique Étienne-Le Bel Local Z5-3031 | 819.346.1110 ext 16634 --

[CMake] CMake, Qt4, Ubuntu and Phonon

2011-11-21 Thread Félix C . Morency
input on this issue and alternative permanent solution to the problem. Regards, -- Félix C. Morency, M.Sc. Plateforme d’analyse et de visualisation d’images Centre Hospitalier Universitaire de Sherbrooke Centre de recherche clinique Étienne-Le Bel Local Z5-3031 | 819.346.1110 ext 16634 -- Power

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] Bug #12189

2011-09-06 Thread Meadows, Aaron C.
t me to the right location to add documentation, I'm happy to write >> some. (I can write some for _UNICODE as well, if you like.) >> >> Aaron Meadows >> >> >> -Original Message- >> From: David Cole [mailto:david.c...@kitware.com] >> Sent:

Re: [CMake] Bug fix requests for the *next* release of CMake...

2011-03-30 Thread James C. Sutherland
http://public.kitware.com/Bug/print_bug_page.php?bug_id=10077* * James * * On Tue, Mar 29, 2011 at 11:56 AM, David Cole wrote: > Hi all, > > Now that we have released CMake 2.8.4, *now* would be a great time to > prioritize bug fixes for the next release of CMake. > > Replies requested. Read o

[CMake] Tips on cmake with git submodules?

2011-01-14 Thread James C. Sutherland
The recent thread on ctest and git submodules made me start considering using submodules in a few projects. My question is how to integrate the two build systems (both cmake based). Right now I do a find_package() to resolve the dependent library. If I move to a submodule, and both the superproj

[CMake] Any issues using CMAKE with virus control?

2011-01-06 Thread Caron, Michael C. (US SSA)
My company has been tightening up the security of our systems and we have had some new security settings and new security software added to our machines. I've been using CMAKE to build both Linux and Windows deliverables for close to a year now with no significant problems. I tried to launch a

Re: [CMake] CMake bug tracker discussion

2010-12-10 Thread Thompson, David C
Mantis lets you customize bug resolution. Maybe a new category of resolution could be created. Instead of "Won't Fix" it could be "Lack of Activity"? David From: cmake-boun...@cmake.org [cmake-boun...@cmake.org] On Behalf Of Bill Hoffman [bill.hoff...@

Re: [CMake] Compiling header files

2010-11-16 Thread James C. Sutherland
Be sure that you have INCLUDE_DIRECTORIES( [path to Internal.h and External.h] ) set. James On Tue, Nov 16, 2010 at 12:24 PM, David Doria wrote: > Ryan, > > The issue is that these headers are only used internally to this > collection of files, so I don't want to have to include them in my >

Re: [CMake] FindHDF5.cmake and the "hl" versions of hdf5 libs

2010-09-01 Thread James C. Sutherland
On Wed, Sep 1, 2010 at 8:06 AM, Michael Jackson wrote: > This probably isn't the best solution but until CMake fixes the bug and > includes the updated FindHDF5.cmake file in the next or future release this > is what you have to do: > > Copy the FindHDF5.cmake file from the current CMake distribu

Re: [CMake] FindHDF5.cmake and the "hl" versions of hdf5 libs

2010-09-01 Thread James C. Sutherland
On Wed, Sep 1, 2010 at 8:06 AM, Michael Jackson wrote: > > Now, edit the FindHDF5.cmake file (the one that you copied into your > project) to remove the offending lines/fix the bug. > Well - that is the real trick. I am not sure where the offending lines are... It may be that the path of least

Re: [CMake] FindHDF5.cmake and the "hl" versions of hdf5 libs

2010-09-01 Thread James C. Sutherland
FYI, I just replicated this on Mac OSX 10.6.4 with HDF5 1.8.2 and CMake 2.8.1. If I do not have the "hl" libs installed things break with the same message on the configure step. James On Wed, Sep 1, 2010 at 7:51 AM, James C. Sutherland < james.sutherl...@utah.edu> wrote: >

Re: [CMake] FindHDF5.cmake and the "hl" versions of hdf5 libs

2010-09-01 Thread James C. Sutherland
...@bluequartz.net > BlueQuartz Software Dayton, Ohio > > > On Sep 1, 2010, at 9:17 AM, James C. Sutherland wrote: > > I was aware of the CMake build for the newer HDF5 releases. >> >> However, I need this to work for users who are not able/willing to build >> th

Re: [CMake] FindHDF5.cmake and the "hl" versions of hdf5 libs

2010-09-01 Thread James C. Sutherland
; REQUIRED NO_MODULE PATHS > "$ENV{ProgramFiles}/HDF5")* > > > > [To fix the problem on the systems without re-installing, just remove > references to hdf5_hl from the FindHDF5 stuff in your cmake installation > module] > > > > JB > > > > *From:* cmake-bo

[CMake] FindHDF5.cmake and the "hl" versions of hdf5 libs

2010-08-31 Thread James C. Sutherland
s/chpc.utah.edu/sys/pkg/hdf5/5-1.6.3-amdopteron/lib/libhdf5_cpp.a > My CMakeLists.txt file has the following: set( HDF5_USE_STATIC_LIBRARIES 1 ) > find_package( HDF5 COMPONENTS C CXX ) > Any idea of how to get fix this problem? James _

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 you

[CMake] FindMatlab tips?

2010-08-06 Thread James C. Sutherland
Is the FindMatlab.cmake package maintained? It seems to fail miserably on Mac. Are there any patches out there? Thanks for any tips... James ___ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/o

[CMake] Decide to include fortran during configure?

2010-07-23 Thread James C. Sutherland
I have a project that may need to use a fortran compiler depending on the user configuration of the project. The problem is that I don't want to force usage of fortran (in the project() statement) since in some cases a user may not have a fortran compiler installed and I want the configure to proc

Re: [CMake] How does one find blas and lapack on OSX?

2010-07-05 Thread James C. Sutherland
On Mon, Jul 5, 2010 at 10:44 AM, John R. Cary wrote: > On 7/5/2010 9:37 AM, James C. Sutherland wrote: > > > > On Mon, Jul 5, 2010 at 9:34 AM, John Cary wrote: > >> I have simply: >> >>FIND_PACKAGE(BLAS) >>FIND_PACKAGE(LAPACK) >> >&

Re: [CMake] How does one find blas and lapack on OSX?

2010-07-05 Thread James C. Sutherland
On Mon, Jul 5, 2010 at 9:34 AM, John Cary wrote: > I have simply: > >FIND_PACKAGE(BLAS) >FIND_PACKAGE(LAPACK) > > but cmake gives > > -- Looking for BLAS... - NOT found (Fortran not enabled) > -- Looking for LAPACK... - NOT found (Fortran not enabled) > > Is this more complicated somehow?

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 http://www.kitware.com/o

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

Re: [CMake] process file contents

2010-05-12 Thread James C. Sutherland
On May 12, 2010, at 11:43 AM, James C. Sutherland wrote: > I would like to execute a command like: > getrates -n < myFileName > > I am trying to add this so it is processed after the target "getrates" is > built > > set( infile ${CM

[CMake] process file contents

2010-05-12 Thread James C. Sutherland
I would like to execute a command like: getrates -n < myFileName I am trying to add this so it is processed after the target "getrates" is built set( infile ${CMAKE_CURRENT_BINARY_DIR}/myFileName ) add_custom_command( TARGET getrates POST_BUILD COMMAND "${CMAKE_CURRENT_BINARY_DIR}/get

Re: [CMake] making a jar from swig-generated jni library

2010-04-28 Thread Caron, Michael C. (US SSA)
t; Message-ID: <9bf48db58688484396c43886e8e7ad880695725...@rshbgxmbcls1.rosettastone.local> Content-Type: text/plain; charset="us-ascii" I am using swig in cmake to create a JNI wrapper around a C++ library. Everything is working fine, however I would like to jar up

Re: [CMake] CMake & Matlab

2010-04-15 Thread James C. Sutherland
on the wiki page, CMake fails during the configure >> phase: >> The C compiler "/Applications/MATLAB_R2010a.app/bin/mex" is not able to >> compile a simple test program. >> > > Did you apply to the patch linked on the wiki page and build your out custom >

[CMake] CMake & Matlab

2010-04-15 Thread James C. Sutherland
e fails during the configure phase: The C compiler "/Applications/MATLAB_R2010a.app/bin/mex" is not able to compile a simple test program. Is anyone using Matlab in their CMake files? I am trying to build a rather large project with mixture of C, C++, fortran, Matlab, and py

[CMake] CUDA Build problems

2010-03-26 Thread James C. Sutherland
I am trying to use CMake to build a very simple CUDA program. I am seeing the following errors when I try to build: > /usr/include/c++/4.2.1/new(95): error: first parameter of allocation function > must be of type "size_t" > /usr/include/c++/4.2.1/new(96): error: first para

[CMake] CMake and SWIG...

2010-03-22 Thread Caron, Michael C. (US SSA)
g my expectations too high. Basically I want to create a java interface to a c++ lib using SWIG as part of my CMake build process. This library has been successfully created before using SWIG so I'm sure it can be done. It's just a matter of figuring out how integrate it with the CM

Re: [CMake] cmake and boost

2010-03-19 Thread James C. Sutherland
> > Why not just let the user decide where they'd like to get boost, and simplify > your build system by just using find_package(Boost)? > > For example, this is all you need for a simple boost-using app... > > find_package(Boost 1.34.0 REQUIRED COMPONENTS filesystem system) > include_directori

Re: [CMake] cmake and boost

2010-03-19 Thread James C. Sutherland
> > include_directories( > boost/src > boost/build/lib/Exports.cmake > ) > I think that you want include( boost/build/lib/Exports.cmake ) instead. Also, you will need to specify the full path to the boost directory. __

Re: [CMake] CMake and SWIG

2010-03-19 Thread Caron, Michael C. (US SSA)
...@kitware.com] Sent: Thursday, March 18, 2010 4:16 PM To: Caron, Michael C. (US SSA) Cc: cmake@cmake.org Subject: Re: [CMake] CMake and SWIG If you open the file "C:/Program Files/CMake 2.8/share/cmake-2.8/Modules/FindSWIG.cmake" and read through it, you will see exactly where CMake

[CMake] CMake and SWIG

2010-03-18 Thread Caron, Michael C. (US SSA)
I'm just starting to try and get CMake and SWIG to play nice together. All I've done is add: FIND_PACKAGE(SWIG REQUIRED) to an existing CMakeLists.txt file that has worked before now. With only this addition I get: CMake Error at C:/Program Files/CMake 2.8/share/cmake-2

Re: [CMake] FIND_LIBRARY in FindBoost finds wrong library

2010-03-18 Thread James C. Sutherland
On Mar 18, 2010, at 7:47 AM, Marcel Loose wrote: > I ran into a problem with FindBoost where it fails to find the correct > version of a component library. The cause is pretty clear to me. This isn't an answer to your question, but have you tried the CMake version of boost? I have found it much

[CMake] Distributed Testing?

2010-03-18 Thread Caron, Michael C. (US SSA)
Can CMake/CTest handle testing distributed applications? For example, I've got a Socket based server and client. I want to test various combinations of server and client on the same machine, on distributed homogeneous machines (all win or all Linux), and on distributed heterogeneous machines (

Re: [CMake] Trying to mix C++ and Fortran code...

2010-03-04 Thread Caron, Michael C. (US SSA)
I'd like to say thanks to those who have responded to my plea for help. I was able to finally figure out what the problem was and figured I should share. As I suspected it was something stupid. We use DevStudio .NET 2003 and Intel Fortran 9.0 to build our projects on windows. We h

[CMake] Trying to mix C++ and Fortran code...

2010-02-23 Thread Caron, Michael C. (US SSA)
I've just started using CMake and have great hopes for it making my life simpler. I currently have a windows console project that mixes C++ and Fortran code. I have the main body of the code (in Fortran), an interface to display code written in C++(in Fortran), and some display code (C++

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

[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 "Canno

Re: [CMake] Multiple libraries, same name...

2010-02-02 Thread Ryan C. Gordon
See this property: http://www.cmake.org/cmake/help/cmake-2-8-docs.html#prop_tgt:LIBRARY_OUTPUT_DIRECTORY Oh, wow, I totally missed that. Thanks, Bill, it worked like a charm. :) --ryan. ___ Powered by www.kitware.com Visit other Kitware open-sour

[CMake] Multiple libraries, same name...

2010-02-01 Thread Ryan C. Gordon
I'm trying to add bindings for various scripting languages to my library PhysicsFS ( http://icculus.org/physfs/ ), and I'm having some trouble. Eventually I end up with something like this abbreviated example for the Perl bindings... # This is the actual main library, not the binding.

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_D

[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 “sub-libraries

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 http://www.kitware.com/opensour

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

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 http://www.kitware.com/opensource/opensource.htm

[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: Can'

Re: [CMake] Use of mpi compiler / FINDMPI.cmake

2009-12-08 Thread James C. Sutherland
t; More precisely, how can I force the use of the MPI_COMPILER ? Do I have > to set the CMAKE_CXX_COMPILER to MPI_COMPILER value ? If yes, how can I > force it because it is initially set to /usr/bin/c++ (I've a cache > option to switch on/off sequential/parallel mode) and it seems

[CMake] Determining number of cores on a system

2009-11-27 Thread James C. Sutherland
Is there a way in CMake to determine the number of shared-memory cores on a system? ___ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check th

Re: [CMake] How can I change the compiler?

2009-11-22 Thread James C. Sutherland
ry(MainLib) > add_subdirectory(MainLib/luabind-0.7) > add_subdirectory(OgreFltk) > > > --- > > in the OgreFltk directory, project (OgreFltk) and add_executable (OgreFltk > ...) is defined. > > cmake . > make VERBOSE=true > &g

Re: [CMake] Create an XXXConfig.cmake file

2009-11-19 Thread James C. Sutherland
a tutorial somewhere? Where does the > file get installed into? What does the consumer of the file need to put into > their cmake files? > > And what version of CMake does all that apply to? > Mike, I applaud this effort! Now we just need a fully functional C++ interface for HDF5.

Re: [CMake] packaging configuration files

2009-11-11 Thread James C. Sutherland
On Nov 11, 2009, at 9:05 AM, Brad King wrote: > James C. Sutherland wrote: >> Thanks. To be clear, it only works if I use >> >> set( ExprLib_LIBRARIES @TPL_LIBRARIES@ ) >> >> because otherwise I have no way of propagating the dependents of >> Exp

Re: [CMake] packaging configuration files

2009-11-10 Thread James C. Sutherland
Brad, thanks for the feedback. See comments below. On Nov 10, 2009, at 11:30 AM, Brad King wrote: > James C. Sutherland wrote: >> The library I am building pulls in several other libraries (MPI, BLAS, >> Boost, etc). I would like any down-stream apps that use my library to &

Re: [CMake] packaging configuration files

2009-11-09 Thread James C. Sutherland
On Nov 9, 2009, at 12:00 PM, Brad King wrote: James C. Sutherland wrote: However, I just discovered that this is a deprecated feature, and that install(EXPORT...) should be used instead. Good, it is much more modern and more powerful. However, it is not clear to me how to incorporate

Re: [CMake] packaging configuration files

2009-11-07 Thread James C. Sutherland
On Nov 7, 2009, at 11:59 AM, James C. Sutherland wrote: I have been using export_library_dependencies() to incorporate library dependencies when generating configuration files for use with find_package() However, I just discovered that this is a deprecated feature, and that

[CMake] packaging configuration files

2009-11-07 Thread James C. Sutherland
I have been using export_library_dependencies() to incorporate library dependencies when generating configuration files for use with find_package() However, I just discovered that this is a deprecated feature, and that install(EXPORT...) should be used instead. However, it is

Re: [CMake] FindHDF5.cmake problem

2009-10-29 Thread James C. Sutherland
On Oct 29, 2009, at 2:03 PM, Will Dicharry wrote: James C. Sutherland wrote: It appears that the variable HDF5_FOUND is not being set in the FindHDF5.cmake module. Any way of getting this fixed prior to the 2.8.0 release? It is set for my systems when it is found. The standard system

[CMake] FindHDF5.cmake problem

2009-10-29 Thread James C. Sutherland
It appears that the variable HDF5_FOUND is not being set in the FindHDF5.cmake module. Any way of getting this fixed prior to the 2.8.0 release? ___ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/

Re: [CMake] Out of source latex build

2009-10-26 Thread James C. Sutherland
On Oct 26, 2009, at 8:13 AM, Moreland, Kenneth wrote: Consider using the UseLATEX.cmake collection of macros. It supports out-of-source builds (in fact, sort of enforces them) and handles copying .sty files as well as all sorts of other sticky little issues with building LaTeX files. You

Re: [CMake] configure_file behaves differently on Mac and Linux?

2009-10-22 Thread James C. Sutherland
On Oct 22, 2009, at 8:50 AM, Bill Hoffman wrote: James C. Sutherland wrote: Thank you, Dave and Bill. Your suggestions fixed the problem. It seems that this is likely a bug that should be fixed, since the behavior is different on Mac and Linux. Can you add some message statements and

Re: [CMake] configure_file behaves differently on Mac and Linux?

2009-10-22 Thread James C. Sutherland
Thank you, Dave and Bill. Your suggestions fixed the problem. It seems that this is likely a bug that should be fixed, since the behavior is different on Mac and Linux. On Oct 22, 2009, at 6:27 AM, Bill Hoffman wrote: James C. Sutherland wrote: I am using configure_file to copy files

[CMake] configure_file behaves differently on Mac and Linux?

2009-10-21 Thread James C. Sutherland
I am using configure_file to copy files during the build process. I have a nested directory structure, that can be represented as: /rootdir CMakeLists.txt /test CMakeLists.txt When processing rootdir/test/CMakeLists.txt, I have the following: #--- get_filename_

[CMake] Are CMake files aware of their path?

2009-10-20 Thread James C. Sutherland
If I add a CMake file via add_subdirectory is there a way to obtain its absolute or relative path? ___ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-

[CMake] environment variables & scope

2009-10-20 Thread James C. Sutherland
How do I set an environment variable so that it is visible globally in CMake? Specifically, I want to have it visible when I run something like: #--- # set the environment variable value set( ENV{myVariable} ... ) # run a test through a CMake script that requ

[CMake] temporary build directory for header files

2009-10-16 Thread James C. Sutherland
I have a fairly large project where the header files from various subdirectories are combined into a single include directory when the project is installed. For example, header "a.h" may be located in: /root/subproject1/ in the source tree, it is located in /include/MyProject/

[CMake] combining static libraries

2009-10-14 Thread James C. Sutherland
I have a situation where I have a few TPLs that are built via auto tools and another project with CMake. tpl1 -> lib1 tpl2 -> lib2 myproject -> libmyproj I would like to combine the two TPLs into my project library. From looking at previous postings on this list, it s

Re: [CMake] Variables in cmake-scripts

2009-10-02 Thread James C. Sutherland
On Oct 2, 2009, at 8:20 AM, wrote: CMakeLists.txt cmake_minimum_required(VERSION 2.6) SET(TEST CACHE STRING "test variable") INSTALL(SCRIPT ${CMAKE_CURRENT_SOURCE_DIR}/install.cmake) install.cmake EXECUTE_PROCESS( COMMAND "/bin/echo" "--test=${TESTVAR} --prefix=$ {CMAKE_I

Re: [CMake] Set a variable?

2009-09-22 Thread James C. Sutherland
On Sep 22, 2009, at 6:16 AM, motes motes wrote: In a CMakeList.txt file I have: SET(ELASTIX_BUILD E:/local/lib/elastix_sources_v4.1/src/build) ... LINK_DIRECTORIES(${ELASTIX_BUILD}/Components/Optimizers/ StandardGradientDescent) I would to be able to specify the variable: ELASTIX_BUILD w

Re: [CMake] cmake 2.6.4 won't find boost 1.40 on windows

2009-09-17 Thread James C. Sutherland
Visual Studio 2008 like this: bjam --build-dir=c:\temp\boost toolset=msvc --build-type=complete install and for MinGW GCC like this: bjam --build-dir=c:\temp\boost toolset=gcc --build-type=complete install Adding set(Boost_ADDITIONAL_VERSIONS "1.40" "1.40.0") didn

Re: [CMake] is ccmake reliable?

2009-09-15 Thread James C. Sutherland
On Sep 15, 2009, at 2:47 PM, Tyler Roscoe wrote: On Tue, Sep 15, 2009 at 02:20:35PM -0600, James C. Sutherland wrote: set( CMAKE_INSTALL_PREFIX ${CMAKE_CURRENT_BINARY_DIR} CACHE PATH "installation path" ) This doesn't work - I assume that this is because CMAKE_INSTALL_PREF

Re: [CMake] is ccmake reliable?

2009-09-15 Thread James C. Sutherland
On Sep 15, 2009, at 12:59 PM, Tyler Roscoe wrote: On Tue, Sep 15, 2009 at 12:37:27PM -0600, James C. Sutherland wrote: A related question: If I set CMAKE_INSTALL_PREFIX in my CMakeLists.txt file set( CMAKE_INSTALL_PREFIX ${CMAKE_CURRENT_BINARY_DIR} ) and then run ccmake, I find that the

Re: [CMake] is ccmake reliable?

2009-09-15 Thread James C. Sutherland
On Sep 15, 2009, at 2:15 PM, Tyler Roscoe wrote: On Tue, Sep 15, 2009 at 02:08:44PM -0600, James C. Sutherland wrote: So assuming that I wanted my CMakeLists.txt file to modify the default install location, but allow the user to change this, wouldn't I do something like:

Re: [CMake] is ccmake reliable?

2009-09-15 Thread James C. Sutherland
On Sep 15, 2009, at 12:50 PM, David Cole wrote: I believe the word used was "reproducible" not "reliable" -- and I think he was talking about the fact that it is not reproducible because it depends on human interaction. Other than the human sitting at the keyboard, I have found ccmake (an

[CMake] is ccmake reliable?

2009-09-15 Thread James C. Sutherland
On another mailing list that I subscribe to someone mentioned that ccmake was not very reliable. Is this true? A related question: If I set CMAKE_INSTALL_PREFIX in my CMakeLists.txt file set( CMAKE_INSTALL_PREFIX ${CMAKE_CURRENT_BINARY_DIR} ) and then run ccmake, I find that the CMAKE_

Re: [CMake] linking error after upgrading to snow leopard

2009-09-11 Thread James C. Sutherland
On Sep 11, 2009, at 12:16 PM, Boudewijn Rempt wrote: On Friday 11 September 2009, James C. Sutherland wrote: On Sep 11, 2009, at 8:24 AM, Boudewijn Rempt wrote: I'm getting weird linking errors after I upgraded to Snow Leopard. This is probably because the library you are linking to

Re: [CMake] linking error after upgrading to snow leopard

2009-09-11 Thread James C. Sutherland
On Sep 11, 2009, at 8:24 AM, Boudewijn Rempt wrote: I'm getting weird linking errors after I upgraded to Snow Leopard. This is probably because the library you are linking to is 32-bit and Snow Leopard's development environment will produce 64-bit binaries. Try recompiling the library/libr

Re: [CMake] cmake can't find boost

2009-09-02 Thread James C. Sutherland
On Sep 2, 2009, at 3:27 AM, Tim Chan wrote: I am getting the error: -- Boost version required: 1.35.0. Found: .. CMake Error at /usr/share/cmake-2.6/Modules/FindBoost.cmake:553 (MESSAGE): Couldn't find the Boost libraries and/or include directory, or the version found is too old. Plea

  1   2   3   >