[CMake] Setting the installation order of a script

Mathias Tausig mathias.tausig at a-cert.at
Thu Jul 14 04:51:27 EDT 2011


Hy!

My CMakeLists.txt in the top directory looks like this:

ADD_SUBDIRECTORY(dir1)
ADD_SUBDIRECTORY(dir2)
INSTALL (SCRIPT setpermissions.cmake)

setpermissions.cmake changes some file-owner permissions of the stuff
that has been installed from dir1 and dir2. The problem is: if I execute
"make install", setpermissions is run previous to the installation from
the subdirectories.
Is there some way to make the script from the last line wait, until
everything else has been installed?
I am using cmake-2.8.3 under linux.

cheer
Mathias


More information about the CMake mailing list