mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-05 21:31:08 -06:00
Since in some situations, ExternalProject module may be included in a sub-directory, functions will be available in the global scope but local variables like "_ep_keywords_<keyword>" will not be defined, this commit checks and reports an error indicating that the ExternalProject module must be explicitly included before using any of the ExternalProject_* functions that require the module's inclusion within the current scope or above. Co-authored-by: Pablo Hernandez <pablo.hernandez@kitware.com> Co-authored-by: Craig Scott <craig.scott@crascit.com>
8 lines
386 B
Plaintext
8 lines
386 B
Plaintext
^CMake Error at .*/Modules/ExternalProject.cmake:[0-9]+ \(message\):
|
|
error: ExternalProject module must be explicitly included before using
|
|
ExternalProject_Add_Step function
|
|
Call Stack \(most recent call first\):
|
|
.*/Modules/ExternalProject.cmake:[0-9]+ \(_ep_parse_arguments\)
|
|
IncludeScope-Add_Step.cmake:[0-9]+ \(ExternalProject_Add_Step\)
|
|
CMakeLists.txt:[0-9]+ \(include\)$
|