diff options
author | Michael Hirsch <scivision@users.noreply.github.com> | 2023-11-19 00:08:00 (GMT) |
---|---|---|
committer | Michael Hirsch <scivision@users.noreply.github.com> | 2023-11-19 00:08:00 (GMT) |
commit | ec2ad53d18a98e2f8bfd69341a3faa95d41d8483 (patch) | |
tree | 1455e311e7e5955dd5c75717c08d9de70644cea8 /Modules/CMakeCXXInformation.cmake | |
parent | ee3e050d2339011a4733fd5f095200d22a39668f (diff) | |
download | CMake-ec2ad53d18a98e2f8bfd69341a3faa95d41d8483.zip CMake-ec2ad53d18a98e2f8bfd69341a3faa95d41d8483.tar.gz CMake-ec2ad53d18a98e2f8bfd69341a3faa95d41d8483.tar.bz2 |
Modules: refactor compiler find to use modern foreach
Diffstat (limited to 'Modules/CMakeCXXInformation.cmake')
-rw-r--r-- | Modules/CMakeCXXInformation.cmake | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Modules/CMakeCXXInformation.cmake b/Modules/CMakeCXXInformation.cmake index 53abf37..3753d18 100644 --- a/Modules/CMakeCXXInformation.cmake +++ b/Modules/CMakeCXXInformation.cmake @@ -66,7 +66,7 @@ if (NOT _INCLUDED_FILE) endif () if(CMAKE_CXX_SIZEOF_DATA_PTR) - foreach(f ${CMAKE_CXX_ABI_FILES}) + foreach(f IN LISTS CMAKE_CXX_ABI_FILES) include(${f}) endforeach() unset(CMAKE_CXX_ABI_FILES) @@ -182,7 +182,7 @@ if(NOT CMAKE_SHARED_MODULE_CXX_FLAGS) endif() # Initialize CXX link type selection flags from C versions. -foreach(type SHARED_LIBRARY SHARED_MODULE EXE) +foreach(type IN ITEMS SHARED_LIBRARY SHARED_MODULE EXE) if(NOT CMAKE_${type}_LINK_STATIC_CXX_FLAGS) set(CMAKE_${type}_LINK_STATIC_CXX_FLAGS ${CMAKE_${type}_LINK_STATIC_C_FLAGS}) |