[CMake] Error in Tutorial?

Stephen Rasku cmake at srasku.net
Mon Sep 10 18:12:58 EDT 2012


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?

...Stephen


More information about the CMake mailing list