[CMake] `cmake -P cmake_install.cmake` vs `make install`

Mathieu Malaterre mathieu.malaterre at gmail.com
Mon Apr 16 10:48:37 EDT 2007


'lo

  I am trying to figure out what is the slight difference between :

make install

  and

cmake -P cmake_install.cmake

  After reading the Makefile I need to run the `preinstall` target. So
my question is how do I do that ?

  Right now I have:

  ADD_CUSTOM_TARGET(deb_destdir_install
    COMMAND DESTDIR=${CMAKE_BINARY_DIR}/debian_package cmake -P
cmake_install.cmake
    DEPENDS ${CMAKE_BINARY_DIR}/cmake_install.cmake
    COMMENT "Building debian_package directory with DESTDIR"
  )
  #ADD_DEPENDENCIES(deb_destdir_install preinstall) # does not work

thanks
-- 
Mathieu
Tel: +33 6 32 13 33 40


More information about the CMake mailing list