Notes |
|
(0021542)
|
Eric NOULARD
|
2010-07-29 09:15
|
|
May be this could be recasted in a generic way to avoid "double" or "more"
inclusion of the same .cmake file, however there is currently a simple
way to solve it just like for C/C++ header, protect yourself against multiple inclusion.
set(CMAKE_MODULE_PATH .)
if(NOT CPACK_CONFIG_INCLUDED)
set(CPACK_CONFIG_INCLUDED TRUE)
include(CPackConfig)
else(NOT CPACK_CONFIG_INCLUDED)
message("Not including this twice")
endif(NOT CPACK_CONFIG_INCLUDED)
This could be written as a macro
include_once
or may be a feature request for enhancing builtin include
include(<file|module> [ONCE])
However how was the offending CPack file generated?
Was it generated by custom tool?
If this is the case then your custom tool could use "include_once" approach.
If not would you be able to give us a complete [but small] example |
|
|
(0030590)
|
David Cole
|
2012-08-13 15:06
|
|
Sending old, not-recently-updated issues to the backlog.
(The age of the bug alone means that nobody is actively working on it...)
If an issue you care about is sent to the backlog when you feel it should have been addressed in a different manner, please bring it up on the CMake mailing list for discussion. Sign up for the mailing list here, if you're not already on it: http://www.cmake.org/mailman/listinfo/cmake [^]
It's easy to re-activate a bug here if you can find a CMake developer who has the bandwidth to take it on, and ferry a fix through to our 'next' branch for dashboard testing.
|
|
|
(0041707)
|
Kitware Robot
|
2016-06-10 14:28
|
|
Resolving issue as `moved`.
This issue tracker is no longer used. Further discussion of this issue may take place in the current CMake Issues page linked in the banner at the top of this page. |
|