include() doesn't work with relative paths?

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view

include() doesn't work with relative paths?

Robert Dailey-2
This fails:

include( foo/bar/myscript.cmake )

But this works:

include( ${CMAKE_CURRENT_LIST_DIR}/foo/bar/myscript.cmake )

Why are relative paths not working?

Powered by

Please keep messages on-topic and check the CMake FAQ at:

Kitware offers various services to support the CMake community. For more information on each offering, please visit:

CMake Support:
CMake Consulting:
CMake Training Courses:

Visit other Kitware open-source projects at

Follow this link to subscribe/unsubscribe: