The required module should be part of your cmake installation. But you should include it in your project with:
include(${CMAKE_ROOT}/Modules/ExternalProject.cmake)
before calling externalproject_add(YOUR STUFF HERE)
Explanation:
CMAKE_ROOT indicates the cmake installation used. All modules are located in subfolders Modules .
You can print the current value with the message (STATUS "CMAKE_ROOT = $ {CMAKE_ROOT}"). Or you use smart macros for this. See CMake
Th.thielemann
source share