[CMake] print path variables within submodules?

Gonzalo Garramuño ggarra13 at gmail.com
Mon Oct 30 11:53:52 EDT 2017



El 29/10/17 a las 09:02, Carlton Banks escribió:
> I am using submodule cmake, in which the relative paths becomes a bit more confusing that I would have hoped.
>
> Is there a way to print the path like ${source_dir} and so on within the CMAKElist, so I can keep track of the paths defined?
>
> I tried `message(${source_dir})` but the output is empty
>

Try message( ${CMAKE_CURRENT_SOURCE_DIR} )

-- 
Gonzalo Garramuño



More information about the CMake mailing list