summaryrefslogtreecommitdiff
path: root/src/vm/wks
diff options
context:
space:
mode:
authorBen Boeckel <mathstuf@gmail.com>2015-02-04 11:39:06 -0500
committerBen Boeckel <mathstuf@gmail.com>2015-02-07 20:51:06 -0500
commit91498e200292ef5f309fc0b7420f8a5bc8e308cc (patch)
tree90e00d8968364a95df999779fdde013631e77e97 /src/vm/wks
parent6f9408efe3bfe1fd8db54cb8537412d8bd95d969 (diff)
downloadcoreclr-91498e200292ef5f309fc0b7420f8a5bc8e308cc.tar.gz
coreclr-91498e200292ef5f309fc0b7420f8a5bc8e308cc.tar.bz2
coreclr-91498e200292ef5f309fc0b7420f8a5bc8e308cc.zip
Use foreach(IN LISTS) syntax in CMake code
It avoids extra separation on semicolons if there are any and skips a variable expansion.
Diffstat (limited to 'src/vm/wks')
-rw-r--r--src/vm/wks/CMakeLists.txt4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/vm/wks/CMakeLists.txt b/src/vm/wks/CMakeLists.txt
index 2f7c16d69f..a0d2745f8b 100644
--- a/src/vm/wks/CMakeLists.txt
+++ b/src/vm/wks/CMakeLists.txt
@@ -9,7 +9,7 @@ get_directory_property(COMPILE_DEFINITIONS_LIST COMPILE_DEFINITIONS)
# Extract the definitions for the ASM code. Since there is a bug in the cmake that prevents us from
# using the generator expressions, we split the definitions into lists based on the configuration.
-foreach(DEFINITION ${COMPILE_DEFINITIONS_LIST})
+foreach(DEFINITION IN LISTS COMPILE_DEFINITIONS_LIST)
if (${DEFINITION} MATCHES "^\\$<\\$<CONFIG:([^>]+)>:([^>]+)>$")
# The entry contains generator expression, so insert the definition into a definitions list
# corresponding to the config
@@ -23,7 +23,7 @@ endforeach()
# Add defines for the ASM. Unfortunately setting it on the target is ignored for asm by the cmake, so we have
# to set it on the sources.
set_property(SOURCE ${VM_SOURCES_WKS_AMD64_ASM} PROPERTY COMPILE_DEFINITIONS ${ASM_DEFINITIONS})
-foreach(CONFIG ${CMAKE_CONFIGURATION_TYPES})
+foreach(CONFIG IN LISTS CMAKE_CONFIGURATION_TYPES)
string(TOUPPER ${CONFIG} CONFIG)
set_property(SOURCE ${VM_SOURCES_WKS_AMD64_ASM} PROPERTY COMPILE_DEFINITIONS_${CONFIG} ${ASM_DEFINITIONS_${CONFIG}})
endforeach()