[CMake] Installing FindCGAL.cmake

Hendrik Sattler post at hendrik-sattler.de
Fri Nov 14 02:45:21 EST 2008


Am Friday 14 November 2008 04:18:59 schrieb Fernando Cacciola:
> In preparing the cmake build system for CGAL I'm having this issue:
>
> Users can define CGAL_DIR explicitely when configuring their own
> programs in order to allow find_package(CGAL) to locate CGALConfig.cmake.
>
> OTOH, if FindCGAL.cmake is in the cmake modules path, they don't need to
> define CGAL_DIR at all.
>
> However, I'm not sure how to go about installing FindCGAL.cmake.
>
> If I merely add an install rule to put it in the actual cmake directory,
> users are then *forced* to run the install target with access privileges
> and they may not want or be allowed to do that.

Use DESTDIR:
  make DESTDIR=~/local install

HS


More information about the CMake mailing list