The following issue has been SUBMITTED. ====================================================================== http://public.kitware.com/Bug/view.php?id=11338 ====================================================================== Reported By: K. R. Walker Assigned To: ====================================================================== Project: CMake Issue ID: 11338 Category: CMake Reproducibility: always Severity: minor Priority: normal Status: new ====================================================================== Date Submitted: 2010-10-19 18:13 EDT Last Modified: 2010-10-19 18:13 EDT ====================================================================== Summary: CMake adds CURRENT_SOURCE_DIR to include_directories if there is a VTK project. Description: CMake adds CMAKE_CURRENT_SOURCE_DIR to the list of include directories if a project named VTK is added to a CMake solution.
cmLocalGenerator.cxx checks for the presence of VTK_SOURCE_DIR (which will be found in the cache if VTK or a project named VTK is part of the solution anywhere). If it's there, then it also looks for VTK_MAJOR_VERSION and VTK_MINOR_VERSION. If those aren't found (as they would not be in a parent scope of VTK, or a project that isn't actually building VTK), then the backwards compatibility "hack" is triggered and includeSourceDir is set to true. Our current workaround is to change the VTK CMake to FORCE VTK_MAJOR_VERSION and VTK_MINOR_VERSION into the cache to prevent the hack from being encountered. ====================================================================== Issue History Date Modified Username Field Change ====================================================================== 2010-10-19 18:13 K. R. Walker New Issue ====================================================================== _______________________________________________ cmake-developers mailing list cmake-developers@cmake.org http://public.kitware.com/cgi-bin/mailman/listinfo/cmake-developers