Skip to content

Commit ddf6702

Browse files
committed
cmake: unset the nacl target list before each game iteration, also unset it properly elsewhere
Deduplicate the internal cmake list content. No functionnal change.
1 parent 856b577 commit ddf6702

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

‎cmake/DaemonGame.cmake‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,8 @@ if (NOT GAME_BUILD_SUBINVOCATION)
9494
mark_as_advanced(BUILD_GAME_NACL_TARGETS)
9595

9696
if (BUILD_GAME_NACL)
97+
unset(nacl_target_list)
98+
9799
foreach(nacl_target ${BUILD_GAME_NACL_TARGETS})
98100
if ("${nacl_target}" STREQUAL "all")
99101
list(APPEND nacl_target_list ${NACL_ALL_TARGETS})
@@ -104,7 +106,7 @@ if (NOT GAME_BUILD_SUBINVOCATION)
104106
list(APPEND nacl_target_list "${detected_target}")
105107
endforeach()
106108
elseif ("${nacl_target}" STREQUAL "none")
107-
set(nacl_target_list "")
109+
unset(nacl_target_list)
108110
else()
109111
list(APPEND nacl_target_list "${nacl_target}")
110112
endif()

0 commit comments

Comments
 (0)