[cmake-developers] [CMake 0012265]: ${CMAKE_CURRENT_LIST_DIR} called from a macro or function does not refer to the current directory

Mantis Bug Tracker mantis at public.kitware.com
Fri Jun 10 17:52:18 EDT 2011


The following issue has been SUBMITTED. 
====================================================================== 
http://public.kitware.com/Bug/view.php?id=12265 
====================================================================== 
Reported By:                Stephen Kelly
Assigned To:                
====================================================================== 
Project:                    CMake
Issue ID:                   12265
Category:                   CMake
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     new
====================================================================== 
Date Submitted:             2011-06-10 17:52 EDT
Last Modified:              2011-06-10 17:52 EDT
====================================================================== 
Summary:                    ${CMAKE_CURRENT_LIST_DIR} called from a macro or
function does not refer to the current directory
Description: 
This might be fully intentional, but I noticed that inside and macro or function
the ${CMAKE_CURRENT_LIST_DIR} refers to the caller. 

I found a workaround by setting a variable in the top level. Is this a bug or is
there another variable I should use?
====================================================================== 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2011-06-10 17:52 Stephen Kelly  New Issue                                    
2011-06-10 17:52 Stephen Kelly  File Added: cmakelistdir.tar.gz                 
  
======================================================================




More information about the cmake-developers mailing list