[CMake] Fortran project compiling with -isystem causing error

2015-03-24 Thread Hugh Sorby
Hi All, I am trying to create a simple Fortran project that relies on a module file that has been built by another project. I have added the directory containing the module file into the include_directories command but the project isn't compiling and raises an error can't find module. The d

Re: [CMake] List all binaries associated with a target.

2015-03-24 Thread Klaim - Joël Lamotte
On Sun, Mar 22, 2015 at 1:22 PM, Roman Bolshakov wrote: > 2015-03-16 23:22 GMT+03:00 Klaim - Joël Lamotte : > >> Then you can invoke top-level cmake_install.cmake to install a subset >>> of your project: >>> DESTDIR=/destination/install/path cmake -DCOMPONENT=A -P >>> cmake_install.cmake >>> >>>

Re: [CMake] List all binaries associated with a target.

2015-03-24 Thread Klaim - Joël Lamotte
On Sun, Mar 22, 2015 at 12:49 PM, Roman Bolshakov wrote: > Unfortunately, if my understanding is correct, >> this code cannot work with external dependencies as they are not targets. > > > It should work with external dependencies which are imported targets. You > just need to check IMPORTED prop

[CMake] Mac OS X : Mixing C++/Fortran

2015-03-24 Thread j s
What C++/Fortran compiler combinations does cmake support for Mac OS X? My default C++ compiler is the compiler which comes with the mac developer tools. My main application would be a scientific/numerical application. What runtime libraries would need to be distributed with the application? Wo

Re: [CMake] Any way to append CMAKE_INSTALL_PREFIX with CMAKE_CFG_INTDIR?

2015-03-24 Thread Thompson, KT
That solution works for me. Thanks for your help! -Original Message- From: David Cole [mailto:dlrd...@aol.com] Sent: Tuesday, March 24, 2015 12:23 PM To: Thompson, KT Cc: cmake@cmake.org Subject: Re: [CMake] Any way to append CMAKE_INSTALL_PREFIX with CMAKE_CFG_INTDIR? An "install" of

Re: [CMake] How to execute an external project target as part of a standard target.

2015-03-24 Thread Bill Somerville
On 24/03/2015 19:00, Bill Somerville wrote: Maybe, but I need to have the 'install' target run when I am running the custom 'source' target of the outer project. Should have read: Maybe, but I need to have the 'install' target NOT run when I am running the custom 'source' target of the outer

Re: [CMake] How to execute an external project target as part of a standard target.

2015-03-24 Thread Bill Somerville
On 24/03/2015 18:31, David Cole wrote: Hi David, How about: add_custom_target(custom-install DEPENDS xxx-install) and cmake --build . --target custom-install ?? OK that does work but I wanted the project to have a normal set of targets. The issue is that the ExternalProject in ques

Re: [CMake] How to execute an external project target as part of a standard target.

2015-03-24 Thread David Cole via CMake
How about: add_custom_target(custom-install DEPENDS xxx-install) and cmake --build . --target custom-install ?? The problem is that you are adding a custom target with the name "install" which is one that CMake generates for you. (Names to be avoided are all, clean, install, package, h

Re: [CMake] Any way to append CMAKE_INSTALL_PREFIX with CMAKE_CFG_INTDIR?

2015-03-24 Thread David Cole via CMake
An "install" of a CMake based project is invoked something like this from within a generated Visual Studio project: cmake.exe -DBUILD_TYPE=$(Configuration) -P cmake_install.cmake If you dig into the (generated) cmake_install.cmake file, you'll see a chunk like this right near the top of the f

Re: [CMake] How to execute an external project target as part of a standard target.

2015-03-24 Thread Bill Somerville
On 13/03/2015 14:06, Bill Somerville wrote: Hi All, I have a superbuild style project consisting of a few external projects. I wish to build the install target of one of them as part of the install target of the parent project. I had it working by adding a step target called install and addin

Re: [CMake] Problem with shared libraries and python wrapping

2015-03-24 Thread Bill Hoffman
On 3/24/2015 6:08 AM, Audrey Istace wrote: Hello, I am trying to compile a VTK class (which uses itk), and would like to make a python wrapping for this class too. I face two problems : -First, when I had the option « build_shared_libs » : OPTION(BUILD_SHARED_LIBS "Shared libraries." ON) The

[CMake] Any way to append CMAKE_INSTALL_PREFIX with CMAKE_CFG_INTDIR?

2015-03-24 Thread Thompson, KT
Hi, For build tools like Visual Studio or Xcode, I would like to have CMAKE_INSTALL_PREFIX end with the build configuration type (Release, Debug, etc.) I tried to append CMAKE_INSTALL_PREFIX with ${CMAKE_CFG_INTDIR} or $ but those approaches didn’t work (The install directory had was a folder

Re: [CMake] Strip not working ? (Mac + makefiles)

2015-03-24 Thread Robert Bielik
Ok, I went with the Xcode generator instead. Then stripping works. /R Robert Bielik skrev den 2015-03-24 10:17: Indeed, seems like a bug in CMake. Looking at cmake_install.cmake for my project, there is no option for stripping. cmake_install.cmake is invoked as: /Applications/CMake.app/Conte

[CMake] Problem with shared libraries and python wrapping

2015-03-24 Thread Audrey Istace
Hello, I am trying to compile a VTK class (which uses itk), and would like to make a python wrapping for this class too. I face two problems : -First, when I had the option < build_shared_libs > : OPTION(BUILD_SHARED_LIBS "Shared libraries." ON) The Makefile is generated, but when I c

Re: [CMake] Strip not working ? (Mac + makefiles)

2015-03-24 Thread Robert Bielik
Indeed, seems like a bug in CMake. Looking at cmake_install.cmake for my project, there is no option for stripping. cmake_install.cmake is invoked as: /Applications/CMake.app/Contents/bin/cmake -DCMAKE_INSTALL_DO_STRIP=1 -P cmake_install.cmake I use CMake 3.0.1. /R Robert Bielik skrev den

[CMake] Strip not working ? (Mac + makefiles)

2015-03-24 Thread Robert Bielik
Hi, I've a project (.app) where I use makefiles when building from cmd line, and I get a make target called "install/strip", however there's no stripping done. However, doing this manually by invoking strip on MyApp.app/Contents/MacOS/MyApp works just fine. Is strip by chance invoked on MyA