[CMake] INSTALL(FILES ... ) and $(OutDir)

Mathieu Malaterre mathieu.malaterre at gmail.com
Tue Nov 18 07:47:56 EST 2008


David,

On Tue, Nov 18, 2008 at 1:09 PM, David Cole <david.cole at kitware.com> wrote:
> Looks like your definition of GDCM_LIBRARY_DIR must include
> "${CMAKE_CFG_INTDIR}". You can't use that in an install rule... rather use
> "\${BUILD_TYPE}" (with an escaped dollar sign) like in the VTK install
> rules...

Cool ! Thanks, I'll have a look.

> BUILD_TYPE is defined in a cmake_install.cmake file to qualify which
> configuration is being installed. (Look at the command line given to cpack
> from a Visual Studio build to understand this...) Why the inconsistency
> originally, I do not know, but changing it now would be backwards
> incompatible if done the easy way. If you have a good suggestion for how to
> make it more consistent in a backwards compatible way, I'm all ears.

Fine by me, I only use VS IDE every couple of month to do my releases.
I'll switch to an nmake based one, that will be easier for a unix guy
like me :)

-- 
Mathieu


More information about the CMake mailing list