2012/9/11 Stephen Rasku <[email protected]>:
> Hi,
>
> I'm working through the CMake 2.8.9 tutorial and I'm at step 3
> (Installing and Testing). I think this line:
>
> install (FILES "${PROJECT_BINARY_DIR}/TutorialConfig.h" DESTINATION
> include)
>
> should be:
>
> install (FILES "${PROJECT_SOURCE_DIR}/TutorialConfig.h" DESTINATION
> include)
>
> ${PROJECT_BINARY_DIR} didn't work for me but ${PROJECT_SOURCE_DIR}
> does. Is this an error or do I have an error somewhere else that
> caused this?
This "PROJECT_BINARY_DIR" is correct since at
step 1 (Adding a Version Number and Configured Header File), one did:
configure_file (
"${PROJECT_SOURCE_DIR}/TutorialConfig.h.in"
"${PROJECT_BINARY_DIR}/TutorialConfig.h"
)
which precisely configure the template header config file from source tree
to binary tree.
--
Erk
Le gouvernement représentatif n'est pas la démocratie --
http://www.le-message.org
--
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