[CMake] CMAKE_INCLUDE_CURRENT_DIR?
Filipe Sousa
natros at gmail.com
Thu Mar 15 16:03:18 EST 2007
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Kishore, Jonnalagadda (IE10) wrote:
> Can someone explain to me the use of CMAKE_INCLUDE_CURRENT_DIR?
>
> In the root CMakeLists.txt file of my project I tried setting the
> variable to ON (tried 1 as well) with:
>
> SET(CMAKE_INCLUDE_CURRENT_DIR ON)
>
> This seemed to make no difference. My expectation reading
> http://www.cmake.org/Wiki/CMake_Useful_Variables was that all the sub
> directories included with the command ADD_SUBDIRECTORY() get included as
> part of include directories for include files located elsewhere.
CMAKE_INCLUDE_CURRENT_DIR is the same as
INCLUDE_DIRECTORIES(${CMAKE_CURRENT_BINARY_DIR}
${CMAKE_CURRENT_SOURCE_DIR}) for all targets.
If you have a project that constantly needs to add the current source
directory and the current binary directory to the targets you can set
CMAKE_INCLUDE_CURRENT_DIR.
> Warm regards,
> Kishore
>
> Ps. I am making progress with cross-compiling by forcing the TEST
> variables as successful. I will write with more details when I am done.
> _______________________________________________
> CMake mailing list
> CMake at cmake.org
> http://www.cmake.org/mailman/listinfo/cmake
>
- --
Filipe Sousa
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
iD8DBQFF+bSWbQdNYqwwwCwRAswbAJ0cUmFhbKaF5HnVHEAIfUIm+VvrOgCgqdtj
FnC5Vpf0+/g50d7KU4tnM/8=
=OQh1
-----END PGP SIGNATURE-----
More information about the CMake
mailing list