Re: [CMake] What is a utility target ?

2016-08-12 Thread Petr Kmoch
Hi all, a bit late to the party, but in case it's still relevant: targets have a property named TYPE ( https://cmake.org/cmake/help/latest/prop_tgt/TYPE.html ) which stores the target type as a string: get_property(type TARGET TargetName PROPERTY TYPE) if(type STREQUAL "EXECUTABLE" OR type

Re: [CMake] Running CxxTest fails on Fedora 24

2016-08-12 Thread Konstantin Tokarev
12.08.2016, 04:32, "Zan Lynx" : > The Fedora /usr/bin/cxxtestgen script calls /usr/bin/python3. NOT > python2 or python. > > CMake runs /usr/bin/python /usr/bin/cxxtestgen which is linked to > python2, and the script fails. > > I don't quite understand why CMake feels the need to

[CMake] add_compile_options query

2016-08-12 Thread Alex Biddulph
Hi, I am trying to add some GCC compiler optimisation flags using the add_compile_options directive but am running into some issues due to the nature of the flags. There are 3 flags that I am trying to set: --param l1-cache-size=24 --param l1-cache-line-size=64 --param l2-cache-size=512 If I

Re: [CMake] add_compile_options query

2016-08-12 Thread CHEVRIER, Marc
Specify flags as strings rather than lists (i.e. add quotes): add_compile_options("--param l1-cache-size=24") add_compile_options("--param l1-cache-line-size=64") add_compile_options("--param l2-cache-size=512") On 12/08/16 11:08, "CMake on behalf of Alex Biddulph"

Re: [CMake] Need ideas/opinions on third party library management

2016-08-12 Thread Roger Leigh
On 12/08/2016 19:59, Robert Dailey wrote: Hello, I've been thinking of a different approach for a while. I've done some toying around with the "Super Build" concept, where I have a separate CMake project that does nothing but use the ExternalProject module to build libraries in real time

Re: [CMake] Need ideas/opinions on third party library management

2016-08-12 Thread Elizabeth A. Fischer
> > This is what Spack and other meta builders do. I don't think CMake is the > best place to do it, for a number of reasons. I would not try to re-invent > the wheel here. > See http://github. com/llnl/spack > -- Elizabeth -- Powered by www.kitware.com Please keep messages on-topic and

Re: [CMake] No response so far. -- Looking for fixed contract help building Library with CMake.

2016-08-12 Thread rleigh
On 2016-08-12 15:50, Ken Boulange wrote: I am a one man company that needs to get a Library built from C/C++ source using CMake. My system is windows 7 Professional. I am running MVS 8 (Microsoft Visual Studios 8) I need the following library built from the below URL (It's a DICOM image

[CMake] No response so far. -- Looking for fixed contract help building Library with CMake.

2016-08-12 Thread Ken Boulange
Any help would be appreciated. From: Ken Boulange [mailto:k...@shapesearch.com] Sent: Thursday, August 11, 2016 5:57 PM To: 'cmake@cmake.org' Subject: Looking for fixed contract help building Library with CMake. I am a one man company that needs to get a Library built

Re: [CMake] No response so far. -- Looking for fixed contract help building Library with CMake.

2016-08-12 Thread Ken Boulange
I did not find the binaries. Rather I misread them. Let me try that. Ken From: Stefan Buschmann [mailto:s_buschm...@gmx.de] Sent: Friday, August 12, 2016 9:29 AM To: Ken Boulange ; cmake@cmake.org Subject: Re: [CMake] No response so far. -- Looking for fixed contract

Re: [CMake] Super builds and export with Namespace

2016-08-12 Thread Ed Branch
We do it like this: - in projectA/CMakeLists.txt: set( ProjectA_IN_TREE TRUE CACHE INTERNAL "" ) - in projectA/ProjectA-config.cmake.in (which is converted to ProjectA-config.cmake by a call to configure_package_config_file from the CMakePackageConfigHelpers module): if(

Re: [CMake] No response so far. -- Looking for fixed contract help building Library with CMake.

2016-08-12 Thread Stefan Buschmann
Did you realize that there already is a download for the library in binary form? See "DCMTK 3.6.0 - support libraries for Windows" on the website you posted. That should be all you need to use that library in your own projects. Do you require any special configuration that you need to build it

Re: [CMake] Need ideas/opinions on third party library management

2016-08-12 Thread Miller Henry
A superbuild will work, and you can write your own Find*.cmake so that find_package works - you don't need most of what the real Find_package would do for you because you already know what is installed where as you control that. But, can you live with the trade off: long build times? What my

[CMake] Need ideas/opinions on third party library management

2016-08-12 Thread Robert Dailey
Hello, There is an internal C++ product at the company I work for which I have written a series of CMake scripts for. This project actually has dependencies on several open source libraries, such as boost, freetype, openssl, etc. Right now what we do is build each of these third party libraries

Re: [CMake] Need ideas/opinions on third party library management

2016-08-12 Thread Elizabeth A. Fischer
This is what Spack and other meta builders do. See http://github. com/llnl/spack On Aug 12, 2016 3:59 PM, "Robert Dailey" wrote: > Hello, > > There is an internal C++ product at the company I work for which I > have written a series of CMake scripts for. This project

[cmake-developers] Integrate tools with cmake

2016-08-12 Thread Costean Adrian via cmake-developers
Hello, I am currently developing some projects which involves a build system and some tools. I would like to know what are the possibilities when it comes to integrate other tools in the cmake build system? How can that be done and what are the obstacles for achieving that? Thanks and regards,

Re: [cmake-developers] [Patch 5/5] Improved WIX support

2016-08-12 Thread Nils Gladitz
On 07/20/2016 03:58 PM, Stuermer, Michael SP/HZA-ZSEP wrote: Using the patchfile support I managed to implement the service installation issue I had, so the unnecessary features from the last patch are removed now. I tested all patches separately and hope they work now. looking forward for

Re: [cmake-developers] Integrate tools with cmake

2016-08-12 Thread Sam Spilsbury
Hi there, Depends on what you mean by "tools". If you mean running some sort of static analysis over your code, there's a few ways to do it. I prefer to use add_custom_command which generates a new makefile based on some output stampfile. You can make the stampfile depend on the input file that

Re: [cmake-developers] toolset Clang 3.7 with Microsoft CodeGen (v140_clang_3_7) debug is broken

2016-08-12 Thread Forumer 4umer
Le 2016-05-02 20:48, foru...@.com a écrit : Le 2016-05-02 20:41, Brad King a écrit : On 05/02/2016 02:17 PM, foru...@x.com wrote: Don't know if it's the best place to report it but I am testing nightly builds(3.5.20160429) to generate some projects for Visual Studio 2015 and the clang

Re: [cmake-developers] [Patch 5/5] Improved WIX support

2016-08-12 Thread Nils Gladitz
On 08/12/2016 11:50 AM, Stuermer, Michael SP/HZA-ZSEP wrote: Patch 5 seems to implement patching of FeatureRef rather than the original Feature elements. I am not sure if this is what you intended but this could be error prone given that there could in theory be any number (0-n) FeatureRef

Re: [cmake-developers] [Patch 5/5] Improved WIX support

2016-08-12 Thread Stuermer, Michael SP/HZA-ZSEP
> -Original Message- > From: Nils Gladitz [mailto:nilsglad...@gmail.com] > Sent: Friday, August 12, 2016 9:42 AM > To: Stuermer, Michael SP/HZA-ZSEP; CMake Developers > Subject: Re: [cmake-developers] [Patch 5/5] Improved WIX support > > On 07/20/2016 03:58 PM, Stuermer, Michael

Re: [cmake-developers] [CMake] Need ideas/opinions on third party library management

2016-08-12 Thread Elizabeth A. Fischer
> > This is what Spack and other meta builders do. I don't think CMake is the > best place to do it, for a number of reasons. I would not try to re-invent > the wheel here. > See http://github. com/llnl/spack > -- Elizabeth -- Powered by www.kitware.com Please keep messages on-topic and

Re: [cmake-developers] Bugfix: Default behavior of CUDA_USE_STATIC_CUDA_RUNTIME

2016-08-12 Thread Brad King
Hi Stephen, On 08/11/2016 03:37 PM, Sorley, Stephen L. wrote: > Recent changes to FindCUDA.cmake (commit 7229ae7) broke Thanks for these two fixes. I've applied them: FindCUDA: Restore default behavior of CUDA_USE_STATIC_CUDA_RUNTIME

[Cmake-commits] CMake branch, next, updated. v3.6.1-1239-g4f29b32

2016-08-12 Thread Brad King
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, next has been updated via 4f29b3241f92887edc055c98b033953d2adea973 (commit) via

[Cmake-commits] CMake branch, next, updated. v3.6.1-1241-g2cd471c

2016-08-12 Thread Brad King
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, next has been updated via 2cd471cea4e4101180871087aa4d3080e0a040ac (commit) via

Re: [cmake-developers] toolset Clang 3.7 with Microsoft CodeGen (v140_clang_3_7) debug is broken

2016-08-12 Thread Brad King
On 08/12/2016 08:59 AM, Forumer 4umer wrote: > I have tested cmake 3.6.1 with the last release of the clang platform by > Microsoft (v140_clang_c2) and nothing has changed. No one is actively working on support for Clang toolsets currently. The experimental support in 3.6 was contributed but no

Re: [cmake-developers] toolset Clang with Microsoft CodeGen (v140_clang_c2) debug is broken

2016-08-12 Thread Forumer 4umer
And if you need more information please look at the thread entitled "toolset Clang 3.7 with Microsoft CodeGen (v140_clang_3_7) debug is broken" a few months ago. -- Powered by www.kitware.com Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ

Re: [cmake-developers] Android Support

2016-08-12 Thread Robert Goulet
That's super awesome Brad! Looking forward to try this out! -Original Message- From: cmake-developers [mailto:cmake-developers-boun...@cmake.org] On Behalf Of Brad King Sent: Friday, August 12, 2016 11:13 AM To: cmake-developers@cmake.org Subject: [cmake-developers] Android Support Hi

[Cmake-commits] CMake branch, master, updated. v3.6.1-615-g77c171a

2016-08-12 Thread Kitware Robot
_VERSION_MINOR 6) -set(CMake_VERSION_PATCH 20160812) +set(CMake_VERSION_PATCH 20160813) #set(CMake_VERSION_RC 1) --- Summary of changes: Source/CMakeVersion.cmake |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) hooks/

[cmake-developers] Android Support

2016-08-12 Thread Brad King
Hi Folks, I've implemented native support for cross-compiling to Android with CMake using either an Android NDK or an Android Standalone Toolchain. I plan to include this in the CMake 3.7 release. Please see the MR here: https://gitlab.kitware.com/cmake/cmake/merge_requests/62 This enables

[cmake-developers] Need ideas/opinions on third party library management

2016-08-12 Thread Robert Dailey
Hello, There is an internal C++ product at the company I work for which I have written a series of CMake scripts for. This project actually has dependencies on several open source libraries, such as boost, freetype, openssl, etc. Right now what we do is build each of these third party libraries