[cmake-developers] [CMake 0011942]: INCLUDE inside file defined by CMAKE_USER_MAKE_RULES_OVERRIDE broken since 2.8.3

Mantis Bug Tracker mantis at public.kitware.com
Wed Mar 9 03:12:51 EST 2011


The following issue has been SUBMITTED. 
====================================================================== 
http://public.kitware.com/Bug/view.php?id=11942 
====================================================================== 
Reported By:                Martin Apel
Assigned To:                
====================================================================== 
Project:                    CMake
Issue ID:                   11942
Category:                   CMake
Reproducibility:            always
Severity:                   major
Priority:                   normal
Status:                     new
====================================================================== 
Date Submitted:             2011-03-09 03:12 EST
Last Modified:              2011-03-09 03:12 EST
====================================================================== 
Summary:                    INCLUDE inside file defined by
CMAKE_USER_MAKE_RULES_OVERRIDE broken since 2.8.3
Description: 
We use a file for overriding the CMAKE_*_INIT variable, which is set via
CMAKE_USER_MAKE_RULES_OVERRIDE. This file includes another file via include,
which is located in the same directory. 

Up to 2.8.2 this worked fine, but since 2.8.3 the referenced file
is not found anymore. It doesn't matter, if the referenced file is referenced
via ${CMAKE_SOURCE_DIR}, ${CMAKE_CURRENT_SOURCE_DIR} or as a relative path name.

Using trace mode shows, that during try_compile the file is not found anymore,
because CMAKE_SOURCE_DIR and CMAKE_CURRENT_SOURCE_DIR seem to be modified.

Steps to Reproduce: 
Create the setup described above:
- A simple main CMakeLists.txt, which sets CMAKE_USER_MAKE_RULES_OVERRIDE to
file a
- File a, which contains an INCLUDE statement to file b, located in the same
directory
- File b, which may contain nothing

Additional Information: 
This is probably caused by the implementation of feature request
http://public.kitware.com/Bug/view.php?id=10902.
====================================================================== 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2011-03-09 03:12 Martin Apel    New Issue                                    
======================================================================




More information about the cmake-developers mailing list