mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 01:55:19 +00:00
[CMAKE] Fix invalid usage of list()
list() functions expects numerical indices for modification operations and silently converts everything else to a number (old behaviour). CMake 3.21 now checks this and throws a warning
This commit is contained in:
parent
8e1fa03456
commit
4e389a992d
1 changed files with 3 additions and 3 deletions
|
@ -287,10 +287,10 @@ function(add_cd_file)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
# do we add it to all CDs?
|
# do we add it to all CDs?
|
||||||
list(FIND _CD_FOR all __cd)
|
list(FIND _CD_FOR "all" __cd)
|
||||||
if(NOT __cd EQUAL -1)
|
if(NOT __cd EQUAL -1)
|
||||||
list(REMOVE_AT _CD_FOR __cd)
|
list(REMOVE_ITEM _CD_FOR "all")
|
||||||
list(INSERT _CD_FOR __cd "bootcd;livecd;regtest")
|
list(APPEND _CD_FOR "bootcd;livecd;regtest")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
# do we add it to bootcd?
|
# do we add it to bootcd?
|
||||||
|
|
Loading…
Reference in a new issue