[CMake] Rolling up Object libraries into a final product

2018-04-13 Thread Cameron Palmer
I’m using object libraries to put together a project composed of numerous modules. When putting together the static library (deliverable) at the end I have used libtool to assemble final product. I’ve been trying to adopt the use of OBJECT type libraries to avoid the libtool call and it mostly

[CMake] Is it possible for CMake to generate unescaped quotes on the (bash) command line as a result of add_custom_command?

2018-04-13 Thread Alan W. Irwin
Hi Nils: I am asking this question directly of you because in the past (at ) you stated "To pass quotes directly to the command either [["foo"]] or \"foo\" should work." But that doesn't work for me (using make and the bash command-line on Linux), and

Re: [CMake] Is it possible for CMake to generate unescaped quotes on the (bash) command line as a result of add_custom_command?

2018-04-13 Thread Nils Gladitz
On 13.04.2018 21:48, Alan W. Irwin wrote: [...] However, that is wrong since that command currently needs two arguments even if one of them is empty.  So instead I need the generated command to be ./test-drv-info "temporary_target_" ps >

Re: [CMake] Testing with multiple Fortran compilers

2018-04-13 Thread Arjen Markus
Hi William, The compiler is not determined via this line - that merely retrieves the name component from the full path to the actual compiler executable. CMake uses a number of methods, if I may express it that way, to determine which compiler (Fortran or otherwise to use). One of them is

Re: [CMake] find_package and get_target_property

2018-04-13 Thread CHEVRIER, Marc
The creation of “imported” target is the responsibility of the package. May be the package “LibA” does not create a such target. In this case, you have to rely on variables (like LibA_LIBRARIES and so on…). The documentation of the package, if any, generally describe how to use the package.

Re: [CMake] Testing with multiple Fortran compilers

2018-04-13 Thread Alberto Luaces
William Clodius writes: > I have been using CMake with gfortran for a number of years, and now > want test my code with ifort. I want to switch easily switch between > compilers. My CMakeLists.txt file is based on the fortran example from > make.org an appears to have most of the infrastructure

Re: [CMake] find_package and get_target_property

2018-04-13 Thread Saad Khattak
Thanks Marc. I assume you mean the library does not export its targets properly? Something like this: # https://cmake.org/Wiki/CMake/Tutorials/Exporting_and_Importing_Targets install(TARGETS generator DESTINATION lib/myproj/generators EXPORT myproj-targets) install(EXPORT myproj-targets

Re: [CMake] find_package and get_target_property

2018-04-13 Thread CHEVRIER, Marc
Using ‘install(EXPORT …)’ you can generate required files to manage imported targets BUT building and exporting targets must be done in a different build environment from the one which imports the targets. From: Saad Khattak Date: Friday 13 April 2018 at 15:02 To:

[CMake] How to extract compile flags from setting CMAKE_CXX_STANDARD

2018-04-13 Thread Benedikt Führer
Hi,   I'm using the following function to setup precompiled headers for unix. The goal is to extract all flags and definitions from the current target and add them to the command line for compiling the precompiled header.   function(export_all_flags _filename)   set(_include_directories

[Cmake-commits] CMake branch, master, updated. v3.11.0-501-gdfeeaa3

2018-04-13 Thread Kitware Robot
VERSION_MINOR 11) -set(CMake_VERSION_PATCH 20180413) +set(CMake_VERSION_PATCH 20180414) #set(CMake_VERSION_RC 1) --- Summary of changes: Source/CMakeVersion.cmake |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) hooks/

[Cmake-commits] CMake branch, master, updated. v3.11.0-500-g77705a2

2018-04-13 Thread Kitware Robot
This is an automated email from the git hooks/post-receive script. It was generated because a ref change was pushed to the repository containing the project "CMake". The branch, master has been updated via 77705a2c2834e84a7413e01e5575201d1730b57a (commit) via

[Cmake-commits] CMake branch, master, updated. v3.11.0-496-g48d7aa2

2018-04-13 Thread Kitware Robot
This is an automated email from the git hooks/post-receive script. It was generated because a ref change was pushed to the repository containing the project "CMake". The branch, master has been updated via 48d7aa2868ed3a8c15f83d9639a9dfd633c7608b (commit) via