[CMake] install() question

J Decker d3ck0r at gmail.com
Thu Oct 13 16:55:36 EDT 2011


I used
          EXECUTE_PROCESS(COMMAND cmake -E copy_if_different ${SOURCE}
${CMAKE_BINARY_DIR}/${BASENAME}.cpp )
which is done when cmake is run (before vs builds)
only problem with this is that to update that souce you need to always
run cmake before build

On Thu, Oct 13, 2011 at 10:09 AM, Robert Dailey <rcdailey at gmail.com> wrote:
> First of all I'm using cmake 2.8.6 and generating Visual Studio 2003
> projects with it.
> There is a particular project that needs to first copy its header files to a
> specific directory in a specific structure. After that, all other projects
> need to reference this project's source code from the installed location,
> not its actual location that it was copied from.
> The install() command sounded perfect for this but unfortunately it seems
> that the INSTALL project builds *last*. What I need is for the files to be
> installed/copied FIRST, so that the other projects will succeed when I build
> them.
> Any idea if install() can do this? I'm not really sure of the purpose for
> install(), so maybe I'm approaching this wrong.
>
> ---------
> Robert Dailey
>
> --
>
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the CMake FAQ at:
> http://www.cmake.org/Wiki/CMake_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.cmake.org/mailman/listinfo/cmake
>


More information about the CMake mailing list