Re: [CMake] Install rpath handling for iOS frameworks [solved-ish]

2017-10-20 Thread clinton
It looks like you want the default behavior, but from what you show, I don't know what is disabling it. The default behavior does not require you to set the XCODE_ATTRIBUTE_LD_DYLIB_INSTALL_NAME, nor does it require you to call install_name_tool yourself at install time to get @rpath. Not gettin

Re: [CMake] OSX RPATH linker flags not added on first build

2017-02-04 Thread clinton
- On Feb 3, 2017, at 11:25 AM, Doug Digglington wrote: > Hello, > I am using ExternalProject to download and build a third-party library (SDL) > in > my project. I am running into an issue on OSX where the RPATH linker flags > will > not be added when my project is built and linked for t

Re: [CMake] How to use a generated linker map with a shared library?

2017-01-16 Thread clinton
On Jan 14, 2017 7:16 PM, Paul Smith wrote:On Sun, 2017-01-15 at 12:08 +1100, Craig Scott wrote: > While not directly answering your question, it seems you may be trying > to deal with symbol visibility. Are you aware of CMake's symbol > visibility features? A good place to start would be the >

Re: [CMake] Full absolute path as RPATH in build tree

2016-12-05 Thread clinton
If you want the INSTALL_NAME_DIR to have effect in the build tree, you also need set_target_properties(EMsoftLib PROPERTIES BUILD_WITH_INSTALL_RPATH ON) Clint - On Dec 5, 2016, at 8:22 PM, Michael Jackson mike.jack...@bluequartz.net wrote: > I have this: > > if(APPLE AND BUILD_SHARED_LIBS)

Re: [CMake] Full absolute path as RPATH in build tree

2016-12-05 Thread clinton
Do you want the library identification to be a full path? set_target_properties(foo PROPERTIES MACOSX_RPATH OFF) Clint - On Dec 5, 2016, at 7:38 PM, Michael Jackson mike.jack...@bluequartz.net wrote: > what combinations of RPATH variables do I need to set to get a full, > absolute path to

Re: [CMake] Force MSVC runtime for debug builds

2016-11-08 Thread clinton
- On Nov 7, 2016, at 1:37 AM, Stephan Menzel wrote: > Hello everyone, > I'm looking for a way to force Debug configurations in generated MSVC > solutions > to use the Release runtime instead of the default "Debug". e.g. /MD rather > than > /MDd. > My use case is an ever recurring problem

Re: [CMake] CMake 3.7.0-r2 Open Project sometimes picks wrong version of Visual Studio

2016-11-08 Thread clinton
- On Nov 8, 2016, at 8:13 AM, Taylor Braun-Jones tay...@braun-jones.org wrote: > On Fri, Nov 4, 2016 at 2:55 PM, Brad King wrote: >> >> On 11/03/2016 06:04 PM, John Drescher wrote: >> > I opened a project in cmake-gui using the open project button from a >> > vc 2010 build of a project. Th

Re: [CMake] Browse buttons in CMake-Gui give URL cannot be listed Malformed URL error (Manjaro KDE Plasma 5.7 Qt 5.7)

2016-09-22 Thread clinton
- On Sep 20, 2016, at 4:18 PM, cmake wrote: > Hi. > When I click "Browse source" or "Browse build" location buttons in the GUI I > get > an error dialog saying that "URL cannot be listed file://" followed by another > dialog "Malformed URL". > 1. I built and reinstalled CMake from sour

Re: [CMake] Browse buttons in CMake-Gui give URL cannot be listed Malformed URL error (Manjaro KDE Plasma 5.7 Qt 5.7)

2016-09-22 Thread clinton
Hi, Thanks for reporting this. I was also able to reproduce it. The problem comes from cmake-gui calling QApplication::removeLibraryPath() in CMakeSetup.cxx. I think the solution is to remove that bit of code, but it may require some additional cpack related code to handle plugins correctly.

Re: [CMake] works when I build using XCode, but not with CMake makefile

2016-09-09 Thread clinton
- On Sep 7, 2016, at 12:52 PM, Cotton Candy wrote: > Here is the output from otool -L on skedmo-solver that you requested: > skedmo-solver: > libmysqlclient.18.dylib (compatibility version 18.0.0, current version 18.0.0) > /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current ve

Re: [CMake] works when I build using XCode, but not with CMake makefile

2016-09-07 Thread clinton
It may help to include the output of "otool -L" on skedmo-solver, /usr/lib/libmysqlclient.18.dylib and /Applications/MAMP/Library/lib/libmysqlclient.18.dylib. And it may also help to see if there is a difference in the otool output in the Xcode vs makefile scenario. Also, it may help to check

Re: [CMake] CPack: Combine Debug and Release build

2016-08-18 Thread clinton
One thing I've done before is to tell cpack to bundle up 2 projects in one cpack session. One project is a debug build, and the other a release build. if ( CREATE_MULTI_CONFIG_PACKAGE ) set (CPACK_INSTALL_CMAKE_PROJECTS # self project " ${CMAKE_CURRENT_BINARY_DIR} ; ${CMAKE_PROJECT_NAME} ;AL

Re: [CMake] Recommended style for multiple CPack generator folder structures

2016-05-24 Thread clinton
I prefer one for both installing and creating packages. install(TARGETS bar COMPONENT bar DESTINATION "./" # This must be "./" not "/" as it has to be a relative path ) Then set CMAKE_PREFIX_PATH=/Applications/Foo when you do an install. CMAKE_PREFIX_PATH will be pre-pended to relative pa

Re: [CMake] Install with full absolute path on OS X

2016-04-26 Thread clinton
To set the install name to an absolute path, it would probably be something like set_property(TARGET EMsoft PROPERTY INSTALL_NAME_DIR ${CMAKE_INSTALL_PREFIX}/lib) Clint - On Apr 26, 2016, at 12:24 PM, Michael Jackson wrote: > I am building a library and installing onto the local syst

Re: [CMake] CPack and PackageMaker

2016-04-04 Thread clinton
Hi, I have updated the patch I sent before and you can find some new code here: https://github.com/clintonstimpson/CMake/commits/productbuild To help, perhaps you can review and test it. Or help in other ways you think it needs. I have done minimal testing. This includes making sure CMake's

Re: [CMake] shared library versioning on OS X

2016-02-20 Thread clinton
Perhaps this bug report fits what you are seeing. Are you seeing this limitation in the ninja generator? https://cmake.org/Bug/view.php?id=14140 Clint On Feb 20, 2016 11:49 AM, Bruce Stephens wrote: > > By the looks of it setting the SOVERSION when generating a SHARED library > creates the s

Re: [CMake] CMAKE_INSTALL_RPATH_USE_LINK_PATH is broken?

2016-01-13 Thread clinton
On Jan 8, 2016 8:16 PM, Elizabeth Fischer wrote: > > Hello, > > I'm using cmake 3.4.1.  I'm trying to compile libraries & executables with an > RPATH.  To that end, I use the following settings: >> >> >> SET(CMAKE_SKIP_BUILD_RPATH  FALSE) >> SET(CMAKE_BUILD_WITH_INSTALL_RPATH TRUE) >> SET(CMAKE_

Re: [CMake] still having rpath problems on osxZ

2015-12-31 Thread clinton
- On Dec 31, 2015, at 1:41 AM, Boudewijn Rempt b...@valdyas.org wrote: > I think I've finally figured out why I didn't get the results the cmake > documentation suggested I should be getting... It's the extra-cmake-modules > that I use, Krita being a KDE application. With these settings: >

Re: [CMake] still having rpath problems on osx

2015-12-22 Thread clinton
On Dec 21, 2015 12:26 PM, Boudewijn Rempt wrote: > > I'm still having rpath problems when creating libraries on OSX... And I'm not > sure what's going on here. Here's the output for a single library: > > otool -L ../i/lib/libkritaimage.dylib > ../i/lib/libkritaimage.dylib: > /Users/boud/

Re: [CMake] fixup bundle vs Qy 5.5.1 and rpaths

2015-12-18 Thread clinton
It appears you need to add the directory(ies) in the Qt installation containing the Qt libraries to your DIRS. set( DIRS ${APP}/Contents/plugins/platforms ${QT_BINARY_DIR} ${QT_LIBRARY_DIR} ) I think it should have been that way, even with Qt 5.3. Clint - On Dec 18, 2015, at 6:12 A

Re: [CMake] CPack and PackageMaker

2015-12-11 Thread clinton
>>> >>> Follow this link to subscribe/unsubscribe: >>> http://public.kitware.com/mailman/listinfo/cmake > > -- > > Powered by www.kitware.com > > Please keep messages on-topic and check the CMake FAQ at: > http://www.cmake.org/Wiki/CMake_FAQ &g

[CMake] autouic problem with Visual Studio

2015-11-05 Thread clinton
Hi, I'm trying out the autouic feature in Visual Studio, and I noticed that if I change a .ui file, the corresponding ui_*.h file is not regenerated when I hit the build button. I don't see this problem under Makefiles. For makefiles, it appears a phony target is used and "cmake -E cmake_aut

Re: [CMake] getting the rpath right on osx

2015-11-02 Thread clinton
- On Nov 2, 2015, at 2:26 AM, Boudewijn Rempt b...@valdyas.org wrote: > I checked the manual and the blog post about rpath on osx, but I'm still > confused, and still not getting it right... > > I build and installed Qt 5.6 alpha like this: > > ./configure -prefix /Users/boudewijnrempt/kf5

Re: [CMake] getting the rpath right on osx

2015-11-02 Thread Clinton Stimpson
On Monday, November 02, 2015 04:08:55 PM Andreas Pakulat wrote: > Hi, > > On Mon, Nov 2, 2015 at 2:49 PM, Boudewijn Rempt wrote: > > On Mon, 2 Nov 2015, Andreas Pakulat wrote: > > > > I think the idea of using @rpath as install name of the Qt libraries is > > > >> geared towards the usecase > >

Re: [CMake] Use CMAKE_MACOSX_RPATH to link a library outside build tree

2015-08-24 Thread Clinton Stimpson
On Sunday, August 23, 2015 04:46:17 AM Oleg Zhylin via CMake wrote: > Hi All, > I still need help with 0015708: Use CMAKE_MACOSX_RPATH to link a library > outside build tree - MantisBT. Could you please suggest are there any CMake > mechanisms to ensure a library outside build tree on mac is linked

Re: [CMake] CMake removes rpath from Linux binaries. How to stop

2015-04-14 Thread clinton
- Original Message - > I am trying to create a standalone build of our application on Linux. We are > currently building on a mix of Mint 17 and Ubuntu 14.04. I have been doing a > lot of reading about rpath, runpath and chrpath. The only way it would seem > to get this done is to adjust t

Re: [CMake] Are CMAKE_CXX_FLAGS supposed to go on the link line?

2015-03-02 Thread Clinton Stimpson
FYI, I also came across this discrepancy recently, and logged a bug for it. http://www.cmake.org/Bug/view.php?id=15427 With the example provided in the bug report, I am seeing link errors under Xcode which I do not see under Makefiles. Clint On Monday, March 02, 2015 07:33:38 PM Roman Bolshak

Re: [CMake] CPack: .desktop files with tar.gz maker?

2014-11-11 Thread clinton
- Original Message - > On 11/7/14, Clinton Stimpson wrote: > > On Friday, November 07, 2014 03:50:32 PM Eric Wing wrote: > >> I have a build and packaging system where I can distribute (mostly) > >> standalone apps for Linux desktop. I am using the default

Re: [CMake] CPack: .desktop files with tar.gz maker?

2014-11-07 Thread Clinton Stimpson
On Friday, November 07, 2014 03:50:32 PM Eric Wing wrote: > I have a build and packaging system where I can distribute (mostly) > standalone apps for Linux desktop. I am using the default CPack > installer which creates .tar.gz, .Z, and .sh files. > > I like this opposed to the .deb/.rpm package s

Re: [CMake] Installation corrupts library on OS X

2014-10-21 Thread Clinton Stimpson
path from the CUDA module and > another one from cmake trying its automagic. > The rpath should probably be removed from the module. Oh! It comes from Modules/FindCUDA.cmake. That does need fixed. Does the attached patch fix your problem? Clint > On Tue, Oct 14, 2014 at 9:56 PM, Clinto

[CMake] cache variables from compiler checks

2014-10-16 Thread Clinton Stimpson
I noticed something odd... If I delete the cache variable CMAKE_STRIP, then re-run cmake, it doesn't come back. If I delete the build/CMakeFiles directory, re-run cmake, it'll come back. Is that intentional? I have a dashboard build where I was re-configuring with a different initial CMakeCac

Re: [CMake] Installation corrupts library on OS X

2014-10-14 Thread Clinton Stimpson
> it, that breaks things. CMake calls "install_name_tool -delete_rpath" at install time to remove the build rpaths and add install rpaths as specified by the INSTALL_RPATH target property. For more details and examples: http://www.kitware.com/blog/home/post/510 http://www.cmake.or

Re: [CMake] Installation corrupts library on OS X

2014-10-14 Thread Clinton Stimpson
| grep > > -A2 LC_RPATH > > > > If the duplicates come from your own linker flags such as, > > -Wl,-rpath,/some/path, you may need to remove those. Otherwise, it would > > help if you can provide a minimal test case to reproduce the problem. > > > > It

Re: [CMake] Installation corrupts library on OS X

2014-10-13 Thread clinton
- Original Message - > Hi, > I'm using CMake 3.0.2 on OS X 10.9.4. When I do a "make install", it's > somehow corrupting some of my libraries at install time. > Here is what otool reports for the library in my build directory - that is, > the state of the library prior to installation:

Re: [CMake] VERSION and SOVERSION target properties on OS X

2014-10-13 Thread Clinton Stimpson
On Friday, October 10, 2014 12:43:53 PM Steven Velez wrote: > Forgive me if this question has been answered before but with CMAKE 2.8.12 > (I believe) xcode builds on OS X started generating shared libraries > decorated with the "VERSION" target property and symlinked by a bare dylib > name and one

Re: [CMake] CPack DragNDrop, adding an additional file to DMG

2014-09-25 Thread Clinton Stimpson
On Thursday, September 25, 2014 10:19:23 AM jmerkow wrote: > Yes. > > Im actually using the Bundle generator. We don't use bundle when compiling. > We only use bundles to launch for the binaries. DESTINATION "." points to > Contents/Resources/ in this case. > > -Jameson > Sorry, the Bundle ge

Re: [CMake] CPack DragNDrop, adding an additional file to DMG

2014-09-25 Thread Clinton Stimpson
On Thursday, September 25, 2014 08:36:18 AM jmerkow wrote: > Using CPack is it possible to add an additional file to the DMG? Many DMGs > accompany their bundles with readme's or other files. I haven't found > anything in the documentation to accomplish this. > > -Jameson Have you tried this?

Re: [CMake] CMAKE_CFG_INTDIR

2014-09-18 Thread clinton
- Original Message - > On 15/09/14 12:01, Daniele E. Domenichelli wrote: > > Is there an alternative variable for CMAKE_CFG_INTDIR that can be used > > in configure time, instead of build time? > > > > If there is not, is it safe to assume that the name of the directory is > > equal to t

Re: [CMake] Setting additional Plist values for OS X Bundle

2014-08-25 Thread Clinton Stimpson
On Monday, August 25, 2014 01:10:27 PM Michael Jackson wrote: > Are there are newer facilities in CMake 3.x that would allow me to add > additional Plist values to the standard Mac OS X bundle plist that gets > created? > > I use the following code currently: > > set_target_properties(${TARGET_N

Re: [CMake] CMake 3.0 and Visual Studio 2013 peculiarities

2014-08-05 Thread Clinton Stimpson
On Tuesday, August 05, 2014 11:30:57 AM Nagy-Egri Máté Ferenc wrote: > Hi! > > > > > I have been using CMake for quite some time now, but there are a few things > I don’t understand or I just don’t know how to accomplish. > > 1) Some time ago I posted about Unicode paths inside generated pro

Re: [CMake] Mac @loader_path for @rpath questions

2014-05-24 Thread clinton
- Original Message - > I have a bunch of libraries and frameworks that properly use @rpath. > Now I am trying to build an application that uses those library and > frameworks via CMake. > > From this blog: > http://www.kitware.com/blog/home/post/510 > I see I am supposed to do: > set(CMA

[CMake] undesirable Bdynamic/Bstatic link flags

2014-05-08 Thread Clinton Stimpson
I have a machine I'm trying to compile some code on, and CMake is apparently being smart and is inserting -Wl,-Bdynamic around some of the libraries from the CMAKE_CXX_IMPLICIT_LINK_LIBRARIES variable. Is there a way to stop that? Or is there a reason why it is doing that? Thanks, Clint --

Re: [CMake] install name for fortran dylibs on mac

2014-05-03 Thread clinton
I've attached a sample project which includes 2 external projects, where the executable links with the library from its build tree. After it is built, you can run it from the build tree ./app-prefix/src/app-build/app Clint - Original Message - > When using @rpath, the proper way to

Re: [CMake] install name for fortran dylibs on mac

2014-05-03 Thread clinton
When using @rpath, the proper way to the executable to find it at runtime is for the executable to have an rpath with a directory that contains the dylib. When compiling the executable, the linker flag "-rpath /path/to/dylib" should be given. This should be automatic with CMake when building th

Re: [CMake] install name for fortran dylibs on mac

2014-05-03 Thread clinton
- Original Message - > Hi, > After much head scratching and googling, I found a way to get the dynamic > library built in a project of mine to have the correct install name, so long > as `DESTDIR=/some/path` is NOT specified upon install. Basically I want to > export the library from both

Re: [CMake] good way to append link flags?

2014-04-23 Thread Clinton Stimpson
On Wednesday, April 23, 2014 06:25:24 PM Nils Gladitz wrote: > On 23.04.2014 18:16, Clinton Stimpson wrote: > > I am using > > set_property(TARGET mytarget APPEND PROPERTY LINK_FLAGS "...") > > multiple times to add various link flags. > > > > But when I

[CMake] good way to append link flags?

2014-04-23 Thread Clinton Stimpson
I am using set_property(TARGET mytarget APPEND PROPERTY LINK_FLAGS "...") multiple times to add various link flags. But when I inspect the actual link command, I see all my flags separated by semi-colons and no spaces between them, which is not what I want. Is this correct behavior for cmake?

[CMake] INTERFACE_LINK_FLAGS ?

2014-04-21 Thread Clinton Stimpson
Is there a reason for the certain set of INTERFACE_* target properties we have? I have a situation where I'd like to add a /DELAYLOAD linker flag to any project that links against a certain library, but I get a message that INTERFACE_LINK_FLAGS is not supported. Do these INTERFACE_* propertie

Re: [CMake] CMake and Framework/CFBundle Support

2014-02-11 Thread clinton
- Original Message - > Hello, > I don't know if I overlook something or the framework/CFBundle support on Mac > OS is rarely. > Most of the things I have already implemented as post-build commands but are > there also CMake ways of doing such things? > .) Adding resources to CFBundles?

Re: [CMake] CMake 2.8.12.201401116 is much slower than 2.8.12.1

2014-01-16 Thread Clinton Stimpson
On Thursday, January 16, 2014 03:13:31 PM Dominik Bernhardt wrote: > Hi, > > I just observed, that the current master branch is much slower than > the the release branch with tag 2.8.12.1 > I have built both branches with VS2010 with the Release configuration. > > Does anyone have an idea what mi

[CMake] missing -rpath-link flag

2014-01-02 Thread Clinton Stimpson
target_link_libraries(shared2 static sharedb) the problem goes away. I had assumed anything done with target_link_libraries() on static libraries would be pushed up to the shared libraries/executables as needed. But in this case, it doesn't. Is this a bug in CMake? -- Clinton Stimpson Elem

Re: [CMake] [PATCH] FindQt4: do not prepend CMake root path when searching the mkspecs directory

2013-12-30 Thread clinton
- Original Message - > When searching for the mkspecs directory, FindQT4 uses the find_path() > function, but it doesn't pass the NO_CMAKE_FIND_ROOT_PATH, which means > that all paths are interpreted relatively to the CMAKE_FIND_ROOT_PATH. > > However, both the ${qt_mkspecs_dirs} and ${q

Re: [CMake] FindQt4 regression (changing QT_QMAKE_EXECUTABLE)

2013-12-05 Thread Clinton Stimpson
On Thursday, December 05, 2013 11:33:58 PM Simon Sasburg wrote: > I've run into a problem after updating my cmake in using the FindQt4 module. > > It used to be the case that when QT_QMAKE_EXECUTABLE was changed by the > user or by a SET(... FORCE) command, all the derived cache entries would be >

[CMake] cpack & components problem

2013-12-03 Thread Clinton Stimpson
I have a situation where I'm generating a NSIS installer and I set CPACK_COMPONENTS_ALL to pick a few components I want to include. I use one component name for all my executables and shared libraries, and there is a 3rd party library (hdf5) that uses a different component name for installing

Re: [CMake] Testing an installation

2013-12-03 Thread clinton
- Original Message - > I need to implement a "test" that does an installation of my project into a > location and then check that all the files indeed got installed or if there > are any errors during the installation. Is there a "best practice" way of > achieving this with CMake? Does CMa

Re: [CMake] Why change option in Cmake -GUI does not require re-configuration?

2013-11-20 Thread clinton
- Original Message - > I downloaded CMake 2.8.12 and faced the following behavior with Cmake -GUI > which can be reproduced if: > After initial configuration click configurations until all options are not > marked as red. > Then change one the options. > Now you are able to click Generat

Re: [CMake] Unicode path wrecks havoc with VS2013 generator

2013-11-13 Thread Clinton Stimpson
On Wednesday, November 13, 2013 03:12:13 PM Nagy-Egri Máté Ferenc wrote: > I have changed the encoding as you suggested and the project compiled fine: > > > 1>-- Build started: Project: cmTryCompileExec747919577, Configuration: > Debug Win32 -- 1> Microsoft (R) C/C++ Optimizing Compiler

Re: [CMake] Unicode path wrecks havoc with VS2013 generator

2013-11-13 Thread Clinton Stimpson
e/help/consulting.html > CMake Training Courses: http://cmake.org/cmake/help/training.html > > > > Visit other Kitware open-source projects at > http://www.kitware.com/opensource/opensource.html > > > Follow this link to subscribe/unsubscribe: > http://www.c

Re: [CMake] Unicode path wrecks havoc with VS2013 generator

2013-11-13 Thread clinton
- Original Message - > I have tried to open the solution by the IDE itself, but that fails to load > the solution also. It report the same error while trying to load the > projects inside. > Shall I rebuild CMake with the mentioned patch to make it work, or can I hope > of a patch that so

Re: [CMake] Unicode path wrecks havoc with VS2013 generator

2013-11-08 Thread clinton
- Original Message - > On 11/8/2013 4:48 AM, Nagy-Egri Máté Ferenc wrote: > > Hi! > > > > I have the following issue, which I do not know whether it is an issue > > of CMake or Visual Studio. When I try to generate a Visual Studio > > project under a path that contains unicode characters,

Re: [CMake] Changes made for Mac fixup_bundle

2013-11-07 Thread Clinton Stimpson
ason by it's failing to execute fixup_bundle? > > Thank you so much for helping me out! > > Sincerely, > > Jong > > -Original Message- > From: Clinton Stimpson [mailto:clin...@elemtech.com] > Sent: Tuesday, October 22, 2013 5:02 PM > To: cmake@cmake.

Re: [CMake] Visual Studio and /STACK

2013-10-25 Thread Clinton Stimpson
On Friday, October 25, 2013 02:52:45 PM David Cole wrote: > > Hmmm... Well that was a not backward compatible way of doing it. > > This behavior has existed for a long long time. > > Sorry for the extra effort you had to expend tracking down a mysterious > problem because of this change. I remem

Re: [CMake] cmake policy CMP0022 error

2013-10-25 Thread Clinton Stimpson
On Friday, October 25, 2013 08:40:41 AM Stephen Kelly wrote: > Clinton Stimpson wrote: > > I have a target where I do this: > > SET_TARGET_PROPERTIES(mytarget PROPERTIES LINK_INTERFACE_LIBRARIES "") > > to hide 3rd party libraries from the link interface.

[CMake] cmake policy CMP0022 error

2013-10-23 Thread Clinton Stimpson
from cmake --help-policy CMP0022, its not clear to me why I'm getting the error. -- Clinton Stimpson Elemental Technologies, Inc Computational Simulation Software, LLC www.csimsoft.com -- Powered by www.kitware.com Please keep messages on-topic and check the CMake FAQ at: http://www.cma

Re: [CMake] Changes made for Mac fixup_bundle

2013-10-22 Thread Clinton Stimpson
Is this a typo? item_substring='/Users/foo/build /install/MacO' Can you please post the arguments you are passing to fixup_bundle()? The arguments are also printed out, for example: fixup_bundle app='/.../cmake/build/Tests/BundleUtilities/testdir2/testbundleutils2' libs='/.../cmake/buil

Re: [CMake] [cmake-developers] CMake 2.8.12-rc2 FindHDF5 issues

2013-09-19 Thread Clinton Stimpson
On Thursday, September 19, 2013 01:47:23 PM Brad King wrote: > On 09/17/2013 06:16 PM, Clinton Stimpson wrote: > > I've narrowed it down to a regression caused by 04d4dc33. > > The following should fix this: > > http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=0f

Re: [CMake] CMake 2.8.12-rc2 FindHDF5 issues

2013-09-17 Thread Clinton Stimpson
On Tuesday, September 17, 2013 04:01:30 PM Orion Poplawski wrote: > On 09/16/2013 09:58 PM, clin...@elemtech.com wrote: > > Same here... and this looks like a regression: > > > > A simple CMakeLists.txt like this can reproduce it. > > > > set(CMAKE_BUILD_TYPE Debug) > > find_package(HDF5 COMPONEN

Re: [CMake] CMake 2.8.12-rc2 Released

2013-09-16 Thread clinton
Same here... and this looks like a regression: A simple CMakeLists.txt like this can reproduce it. set(CMAKE_BUILD_TYPE Debug) find_package(HDF5 COMPONENTS C HL REQUIRED) add_executable(foo foo.cpp) target_link_libraries(foo ${HDF5_LIBRARIES}) FindHDF5.cmake misuses CMAKE_BUILD_TYPE and CMAKE_CO

Re: [CMake] rpath trouble on macosx: cmake 2.8.9 ignores INSTALL_NAME_DIR and INSTALL_RPATH?

2013-09-10 Thread Clinton Stimpson
On Tuesday, September 10, 2013 09:43:59 AM Dan Kegel wrote: > Howdy! > I'm using 2.8.9 installed on MacOSX using macports, and am trying to get > a minimal example of rpath working. > > Doing it without cmake works fine; see > http://kegel.com/macosx/rpath/demo.txt > which just does > gcc -sha

Re: [CMake] rpath trouble on macosx: cmake 2.8.9 ignores INSTALL_NAME_DIR and INSTALL_RPATH?

2013-09-10 Thread Clinton Stimpson
On Tuesday, September 10, 2013 04:03:08 PM Dan Kegel wrote: > On Tue, Sep 10, 2013 at 10:43 AM, Clinton Stimpson wrote: > > Using the INSTALL_RPATH property doesn't work correctly unless you use > > CMake 2.8.12 with the target property MACOSX_RPATH=1. > > Done, examp

Re: [CMake] Absolute Path linking library

2013-09-04 Thread Clinton Stimpson
quot;make install" instead of "make", which will do both the make and install in one step. Clint > > Thank you very much. > -Laurent > > On Wed, Sep 4, 2013 at 2:16 PM, Clinton Stimpson wrote: > > On Wednesday, September 04, 2013 01:22:11 PM Laur

Re: [CMake] Absolute Path linking library

2013-09-04 Thread Clinton Stimpson
setting DYLD_LIBRARY_PATH. You only need to supply 2 .cpp files with some dummy functions. The library and executable are in two separate directories. Clint > > ? > > Thank you. > -Laurent > > On Wed, Sep 4, 2013 at 1:18 PM, Clinton Stimpson wrote: > > On Wednesday,

Re: [CMake] Absolute Path linking library

2013-09-04 Thread Clinton Stimpson
ked the INSTALL(EXPORT ..), here > http://www.cmake.org/Wiki/CMake/Tutorials/How_to_create_a_ProjectConfig.cmak > e_file but I don't understand what it's doing and how it works. > > Thank you. > -Laurent > > On Wed, Sep 4, 2013 at 12:26 PM, Clinton Stimpson wrote: > > On Wednesday,

Re: [CMake] Absolute Path linking library

2013-09-04 Thread Clinton Stimpson
/ I run "cmake . && make && ./app" With 2.8.12, it works. With an older version, I get dyld: Library not loaded: @rpath/liblib.dylib Referenced from: /app Reason: image not found Trace/BPT trap Clint > > Thank you. > -Laurent > > On Wed, Sep 4,

Re: [CMake] Absolute Path linking library

2013-09-04 Thread Clinton Stimpson
way. Use install(EXPORT ..), which will take care of those details for you. Your MyLibConfig.cmake/mylib-config.cmake file can include it. Clint > > Thank you very much. > -Laurent > > On Wed, Sep 4, 2013 at 10:57 AM, Clinton Stimpson wrote: > > On Tuesday, September 03, 2013

Re: [CMake] Absolute Path linking library

2013-09-04 Thread Clinton Stimpson
gt; I could make a condition to set the extension at the end of the name of > > the library like libMyLib.(dll, dyld, a) but, I feel like it's not really > > a > > clean way to do it. > > > > Is there a better way to do it ? > > > > Thank you very muc

Re: [CMake] Absolute Path linking library

2013-09-04 Thread Clinton Stimpson
On Tuesday, September 03, 2013 09:47:45 PM Laurent Chauvin wrote: > Hello everyone, > > I'm working on a library, and I would like the users be able to create their > own program and liking to my library (by specifying path in cmake). > > I created the library and an example to test it. > Everyth

Re: [CMake] One build, multiple compilers and packages

2013-08-26 Thread clinton
- Original Message - > Hi. First, apologies for the length. If you are not interested in mixing > different compilers and generating multiple packages all within one build, > you can probably stop reading now. > After trying various approaches and not being entirely satisfied with any, I

Re: [CMake] syntax error?

2013-08-14 Thread Clinton Stimpson
ixed in 'nightly'? > > However, MSVC is empty unless I remove the "NONE" from project... > > > HTH, > D Ah, you introduced a space after the "NOT" to silence the warning. I'm not sure why it is picky about that space not being there.

[CMake] syntax error?

2013-08-14 Thread Clinton Stimpson
Is the following a syntax error? if (NOT(MSVC AND (MSVC_VERSION EQUAL 1600))) ... I'm using cmake from git master as of today and it gives me a warning CMake Warning (dev) in .../CMakeLists.txt: Syntax Warning in cmake code at /.../CMakeLists.txt:309:10 -- Clinton Sti

Re: [CMake] MacOS bundle using MACOS_PACKAGE_LOCATION with XCode - files not copied

2013-05-29 Thread clinton
- Original Message - > Hello, > > I'm using cmake to generate an Xcode project which is supposed to build a > bundle. Thus, I use the source file property MACOSX_PACKAGE_LOCATION to > place my data (database, GUI, localization files, …) in the correct > directory in my bundle. > > I use

Re: [CMake] Building multiple configurations with Xcode?

2013-05-03 Thread Clinton Stimpson
de a debug only build, or modified the frameworks. > > The modification was because Qt uses the same "_debug" suffix as the whole > > system, and I don't want the debug version of all of the system libraries > > because it is way too slow. So anyway, for me, this is

Re: [CMake] Building multiple configurations with Xcode?

2013-05-03 Thread clinton
- Original Message - > clin...@elemtech.com wrote: > > > > > > > - Original Message - > >> clin...@elemtech.com wrote: > >> > >> > > >> > > >> > - Original Message - > >> >> Stephen Kelly wrote: > >> >> > >> >> > Is it possible to build multi-config frameworks with

Re: [CMake] Building multiple configurations with Xcode?

2013-05-03 Thread clinton
- Original Message - > > > - Original Message - > > clin...@elemtech.com wrote: > > > > > > > > > > > - Original Message - > > >> Stephen Kelly wrote: > > >> > > >> > Is it possible to build multi-config frameworks with cmake at all? > > >> > > >> I also notice that

Re: [CMake] Building multiple configurations with Xcode?

2013-05-03 Thread clinton
- Original Message - > clin...@elemtech.com wrote: > > > > > > > - Original Message - > >> Stephen Kelly wrote: > >> > >> > Is it possible to build multi-config frameworks with cmake at all? > >> > >> I also notice that the Framework unit test uses > >> > >> set_target_prop

Re: [CMake] Building multiple configurations with Xcode?

2013-05-03 Thread clinton
- Original Message - > Stephen Kelly wrote: > > > Is it possible to build multi-config frameworks with cmake at all? > > I also notice that the Framework unit test uses > > set_target_properties(foo PROPERTIES >FRAMEWORK TRUE >DEBUG_POSTFIX -d > ) > > but the debug file is c

Re: [CMake] BundleUtilities and @rpath

2013-05-02 Thread Clinton Stimpson
e > > Let me know what you think. > > Thanks > Jc Is it to help make the same @executable_path based bundles but support copying in libraries and frameworks that used @rpath and change them over to be @executable_path based? Or is this to help create bundles that result in th

Re: [CMake] CPack Generator for the Mac App Store

2013-04-23 Thread Clinton Stimpson
ferred over c++ code, where possible. So my suggestion now is to have code signing in a cmake module, and the new cpack generator be a class derived from cmCPackGenerator. Without the Bundle generator behavior, because people should be able to use any cpack generator without modifying the

Re: [CMake] CPack Generator for the Mac App Store

2013-04-12 Thread clinton
Bringing this thread back to the cmake list... - Original Message - > Hi Clint, > On Fri, Apr 12, 2013 at 9:28 AM, Clinton Stimpson < clin...@elemtech.com > > wrote: > > Ok, I now see what is special about it. > > > It uses "productbuild" to ge

Re: [CMake] CPack Generator for the Mac App Store

2013-04-11 Thread Clinton Stimpson
CK_APPLE_BUNDLE_ID "${MACOSX_BUNDLE_GUI_IDENTIFIER}") > > -Brian > > [1] > http://developer.apple.com/library/mac/#documentation/Miscellaneous/Referenc > e/EntitlementKeyReference/Chapters/EnablingAppSandbox.html#//apple_ref/doc/u > id/TP40011195-CH4-SW1 Why do

Re: [CMake] nested replacement with @@

2013-04-10 Thread Clinton Stimpson
e/unsubscribe: > > http://www.cmake.org/mailman/listinfo/cmake > > -- > > 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 the CMake FAQ at:

[CMake] INSTALL_INTERFACE question

2013-04-09 Thread clinton
I'm playing with some of the new cmake 2.8.11 features and an example I saw had this: set_property(TARGET foo PROPERTY INTERFACE_INCLUDE_DIRECTORIES "$" "$" ) I can see it put the expanded version of "${CMAKE_INSTALL_PREFIX}/include" in my export file, but I want i

Re: [CMake] CTest / CDash integration

2013-04-09 Thread Clinton Stimpson
On Tuesday, April 09, 2013 04:42:57 PM Martin Baute wrote: > Am 09.04.2013 16:29, schrieb Clinton Stimpson: > > How are the config settings and binary path for CTest already given > > in the > > CMakeLists.txt file? Normally, a CMakeLists.txt file does not have a > >

Re: [CMake] CTest / CDash integration

2013-04-09 Thread Clinton Stimpson
ading CTest results to a CDash server, so I was wondering > if I was missing something. > > Regards, -- Clinton Stimpson Elemental Technologies, Inc Computational Simulation Software, LLC www.csimsoft.com -- Powered by www.kitware.com Visit other Kitware open-source projects at http://

[CMake] rpmbuild architecture

2013-04-05 Thread clinton
I'm trying to build an i686 RPM package on a x86_64 Linux machine. I have a set(CPACK_RPM_PACKAGE_ARCHITECTURE i686) but I get an error at CPack time: error: No compatible architectures found for build I can get it to work if I also use setarch when calling rpmbuild giving it the CPack gener

Re: [CMake] ctest & git submodules

2013-02-26 Thread Clinton Stimpson
ECTORY ${CTEST_SOURCE_DIRECTORY}) > endif () > > Best Regards > > Am 26.02.2013 um 20:16 schrieb NoRulez : > > Hi, > > > > I don't think so, you could check for a .git directory and then call > > > > git submodule update --init --recursive > > &

[CMake] ctest & git submodules

2013-02-26 Thread Clinton Stimpson
Is there anything special I need to do with ctest so that the ctest_update() will recognize git submodules and do any init/update of those for me? I assumed it would be automatic, but that doesn't seem to be the case. -- Clinton Stimpson Elemental Technologies, Inc Computational Simul

Re: [CMake] Adding dylib with either @rpath or absolute paths to osx cmd line executable target

2013-02-19 Thread Clinton Stimpson
up doing. A per target post build rule that > runs install_name_tool. With all cmake's wizardry, I sorta figured somebody > must have thought about this already ;) > > Thanks for the tip, I feel better now that I did not overlook something! > > On Feb 19, 2013, at 8:

Re: [CMake] Adding dylib with either @rpath or absolute paths to osx cmd line executable target

2013-02-19 Thread Clinton Stimpson
ted. > > > Thanks, > > Bart > > -- > > 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 the CMake FAQ at: > http://www.cmak

Re: [CMake] how to compile as 32bit on a 64bit Linux host ?

2013-02-15 Thread clinton
Or simply specify -m32 at the first configure CFLAGS=-m32 CXXFLAGS=-m32 cmake ../src find_library() works correctly if you do that, and it automatically detects if the 32 bit libraries are in /usr/lib32 or /usr/lib. Clint - Original Message - > Hello, > > On 15/02/13 15:41, Martin Kol

  1   2   3   4   5   6   >