hello CMake community,
I am experimenting with external projects. I have documentation in an
external project which is generated in `${CMAKE_CURRENT_SOURCE_DIR}`.
When I add the external project, however, it is using
`${CMAKE_CURRENT_SOURCE_DIR}` of the "super build".
I need `${CMAKE_CURRENT_SOURCE_DIR}` to be equal to `${SOURCE_DIR}`,
where the former is seen by the external project and the latter by the
"super build".
Example:
message("${CMAKE_CURRENT_SOURCE_DIR} = /home/user/super")
ExternalProject_Add(ext1
# directory options
SOURCE_DIR "${CMAKE_CURRENT_SOURCE_DIR}/ext1"
)
${CMAKE_CURRENT_SOURCE_DIR}/ext1/CMakeLists.txt:
message("${CMAKE_CURRENT_SOURCE_DIR} = /home/user/super/ext1")
--
Powered by www.kitware.com
Please keep messages on-topic and check the CMake FAQ at:
http://www.cmake.org/Wiki/CMake_FAQ
Kitware offers various services to support the CMake community. For more
information on each offering, please visit:
CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html
Visit other Kitware open-source projects at
http://www.kitware.com/opensource/opensource.html
Follow this link to subscribe/unsubscribe:
https://cmake.org/mailman/listinfo/cmake