Brad King wrote:

Actually to be completely correct you need to account for DESTDIR
installs.  Also you do not want the install prefix or destdir to
evaluate until install time, so you need to escape the $ tokens too:

INSTALL(CODE "
MESSAGE(STATUS \"Installing \${CMAKE_INSTALL_PREFIX}/lib/chicken/1\")
MAKE_DIRECTORY(\"\$ENV{DESTDIR}\${CMAKE_INSTALL_PREFIX}/lib/chicken/1\")
")
  

Thanks!  I think, given the several levels of additional understanding necessary to correctly install an empty directory, that I will make a feature request for a standard, simple way to do it.  Like INSTALL(MAKE_DIRECTORY mydir).


Cheers,
Brandon Van Every

_______________________________________________
CMake mailing list
[email protected]
http://www.cmake.org/mailman/listinfo/cmake

Reply via email to