Closed StefanRickli closed 5 years ago
Appending to CMAKE_MODULE_PATH is done on the command line:
[cmake-sources]> cmake -S with-external-module-good/example -B _builds -D CMAKE_MODULE_PATH=pwd
/with-external-module-good/external
respectively
[cmake-sources]> cmake -Hwith-external-module-good/example -B_builds -DCMAKE_MODULE_PATH=pwd
/with-external-module-good/external
in older cmake syntax.
The example in
cmake-sources/with-external-module-good
doesn't work because the path tomymodule.cmake
isn't fully specified (CMAKE Error: include could not find load file: mymodule).How should the
include
statement look correctly? Add the linelist(APPEND CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/../external")
before?