Reputation: 2292
In the ExternalProject_Add
documentation for cmake, it mentions setting the EP_BASE
property. I've attempted setting this using the set
keyword, however it doesn't seem to work.
How should this property be set for ExternalProject_Add
to use it?
Upvotes: 7
Views: 1852
Reputation: 1110
As this is a property you can set it using set_property with the DIRECTORY
as the first argument.
set_property(DIRECTORY PROPERTY EP_BASE "path/to/directory")
Upvotes: 1
Reputation:
EP_BASE
is the directory property. From documentation:
Otherwise, if the EP_BASE directory property is set ...
You need to use set_directory_properties command to modify the value. For instance:
set_directory_properties(PROPERTIES EP_BASE "/path/to/directory")
Upvotes: 5