74ed09fda0
CMake allows projects to build dependencies as subdirectories using the add_subdirectory command. CMAKE_SOURCE_DIR refers to the top-level project directory which may very well *not* be the mstch root directory if mstch is "embedded" in another project. This patch offers to use PROJECT_SOURCE_DIR instead which accurately refers to the "source directory of the most recent `project()` command", in this case, the mstch root directory. |
||
---|---|---|
.. | ||
state | ||
visitor | ||
CMakeLists.txt | ||
mstch.cpp | ||
render_context.cpp | ||
render_context.hpp | ||
template_type.cpp | ||
template_type.hpp | ||
token.cpp | ||
token.hpp | ||
utils.cpp | ||
utils.hpp |