Bill,
it seems this policy doesn't affect foreach():
macro(test pol)
cmake_policy(SET CMP0007 ${pol})
set(list)
list(APPEND list A B "" C D)
list(LENGTH list len)
message("List: ${list} (length=${len})")
foreach(arg ${list})
message("List elem: ${arg}")
endforeach()
endmacro()
test(OLD)
test(NEW)
returns:
List: A;B;;C;D (length=4)
List elem: A
List elem: B
List elem: C
List elem: D
List: A;B;;C;D (length=5)
List elem: A
List elem: B
List elem: C
List elem: D
Alexandre
-----Original Message-----
From: Bill Hoffman [mailto:[email protected]]
This is related to this policy:
http://www.cmake.org/cmake/help/cmake2.6docs.html#policy:CMP0007
-Bill
This email was sent to you by Thomson Reuters, the global news and information
company.
Any views expressed in this message are those of the individual sender, except
where the sender specifically states them to be the views of Thomson Reuters.
_______________________________________________
Powered by www.kitware.com
Visit other Kitware open-source projects at
http://www.kitware.com/opensource/opensource.html
Please keep messages on-topic and check the CMake FAQ at:
http://www.cmake.org/Wiki/CMake_FAQ
Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake