[CMake] install an empty directory

Brandon J. Van Every bvanevery at gmail.com
Wed Jul 19 12:48:30 EDT 2006


David Cole wrote:
> How about:
> INSTALL(CODE "MAKE_DIRECTORY(\"lib/chicken/1\")")
>

Almost!  Needs a ${CMAKE_INSTALL_PREFIX} qualifier, then it works.

# Destination for eggs.  No eggs to install though.
INSTALL(CODE "
  MESSAGE(STATUS \"Installing ${CMAKE_INSTALL_PREFIX}/lib/chicken/1\")
  MAKE_DIRECTORY(\"${CMAKE_INSTALL_PREFIX}/lib/chicken/1\")
")


Cheers,
Brandon Van Every



More information about the CMake mailing list