Re: [CMake] Question regarding External Project add and VTK

2014-08-07 Thread jmerkow
Jc, I guess I spoke too soon on my 'last question.' How does make install work with this superbuild system. Looking at slicer and ctk, they seem to set INSTALL_COMMAND to "" in their superbuild.cmake, but presumably these packages still install even with superbuild mode on. Can you offer any adv

Re: [CMake] cmake version/feature detection

2014-08-07 Thread Leif Walsh
Thanks! On Thu, Aug 7, 2014 at 7:55 AM, David Cole wrote: > Specifically, for the OBJECT library feature, I figured out what > version of CMake introduced it like this: > > gitk -- Tests/ObjectLibrary/CMakeLists.txt > > leads to finding this first commit of that file: 69d3d183 [1] > > g

Re: [CMake] Windows Path Issues

2014-08-07 Thread Ivan Hrasko
I found at < https://code.google.com/p/android-cmake/source/browse/toolchain/android.toolchain.cmake?r=25d186d534477c063d780ac22a8c44bded2ca71d> this: "# Usage Windows: # You need native port of make to build your project. # For example this one: http://gnuwin32.sourceforge.net/packages/make.htm #

Re: [CMake] Cmake issue regarding conversion of existing Visual Studio .targets files to cmake

2014-08-07 Thread David Cole via CMake
If it works, do it. Custom commands are the easiest way to do MIDL stuff driven by CMake if you need things to work with any generator. Alternatively, if you are guaranteed to be using Visual Studio generators, you can try just adding the idl file as a source file of the library or executable tha

Re: [CMake] cmake version/feature detection

2014-08-07 Thread David Cole via CMake
Specifically, for the OBJECT library feature, I figured out what version of CMake introduced it like this: gitk -- Tests/ObjectLibrary/CMakeLists.txt leads to finding this first commit of that file: 69d3d183 [1] gitk 69d3d183 leads to b87d7a60 [2] (4 parent commits up) which introduced

Re: [CMake] Cmake issue regarding conversion of existing Visual Studio .targets files to cmake

2014-08-07 Thread Ravi Raman
Hi David, We have a query regarding how to use MIDL related commands in cmake. In our project, many Visual Studio project files involve MIDL command execution. So, there are few Visual Studio targets which use MIDL related macros. For example, here is one such target:

Re: [CMake] Is it possible for a dependee to use the dependency LINKER_FLAGS ?

2014-08-07 Thread Glenn Coombs
I just tried reproducing your 2 examples. Setup 1 works fine for me with no messages about policy CMP0022. The only way I could get that message produced was by omitting the cmake_minimum_required(VERSION 3.0) line. Are you sure you're running the exact same CMakeLists.txt file that you have pos

Re: [CMake] cmake version/feature detection

2014-08-07 Thread Glenn Coombs
If you know which version of cmake first introduced the feature you want to check for then you could base your decision on the values of these 3 cmake variables: CMAKE_MAJOR_VERSION CMAKE_MINOR_VERSION CMAKE_PATCH_VERSION -- Glenn On 5 August 2014 04:30, Leif Walsh wrote: > Hi, > > I'm wonde