[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-bugs-dist
Subject: [Bug 238455] Wrong variable scope in subdirs
From: Nicolás Alvarez <nicolas.alvarez () gmail ! com>
Date: 2010-05-22 2:17:03
Message-ID: 20100522021703.C502341317 () immanuel ! kde ! org
[Download RAW message or body]
https://bugs.kde.org/show_bug.cgi?id=238455
--- Comment #2 from Nicolás Alvarez <nicolas alvarez gmail com> 2010-05-22 04:17:03 ---
CMake functions (not macros) have their own variable scope too:
function(sub)
message(STATUS "this is sub: ${foo}")
set(foo "one")
message(STATUS "changed to: ${foo}")
endfunction(sub)
set(foo "asd")
sub()
message(STATUS "result: ${foo}")
CMake 2.8.1:
-- this is sub1: asd
-- changed to: one
-- result: asd
KDevelop 4.0:
message: ("this is sub1: asd")
message: ("changed to: one")
message: ("result: one")
--
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching all bug changes.
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic