[CMake] Setting the argument of INCLUDE_DIRECTORIES from the command line
Rolf Eike Beer
eike at sf-mail.de
Sat Oct 20 09:54:35 EDT 2012
Olumide wrote:
> Hi -
>
> The CMakeLists.txt file of the project that I am trying to build has the
> following
>
> INCLUDE_DIRECTORIES(${EO_SOURCE_DIR}/src)
> INCLUDE_DIRECTORIES(${EO_SOURCE_DIR}/src/ga)
> INCLUDE_DIRECTORIES(${EO_SOURCE_DIR}/src/utils)
>
> Is it possible to set ${EO_SOURCE_DIR} from the command line, when
> running cmake?
Sure: cmake -D EO_SOURCE_DIR=/foo/bar/baz /path/to/sources
Eike
--
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part.
URL: <http://www.cmake.org/pipermail/cmake/attachments/20121020/b002d5d9/attachment.pgp>
More information about the CMake
mailing list