Charles W
Charles W

Reputation: 2292

Where does one set ExternalProject properties?

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

Answers (2)

Daniel
Daniel

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

user2288008
user2288008

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

Related Questions