Skip to content
Snippets Groups Projects
Commit 4aa9f154 authored by Georgiy Lebedev's avatar Georgiy Lebedev Committed by Vladimir Davydov
Browse files

build: fix unsetting of variables in `add_compile_flags` macro

`add_compile_flags` macro relied on undefined behaviour: instead of
unsetting the `_lang` and `_flag` variables, it tried to unset their
values — fix this.

NO_CHANGELOG=build
NO_DOC=build
NO_TEST=build
parent adcec573
No related branches found
No related tags found
No related merge requests found
......@@ -2,8 +2,8 @@ macro(add_compile_flags langs)
foreach(_lang ${langs})
string (REPLACE ";" " " _flags "${ARGN}")
set ("CMAKE_${_lang}_FLAGS" "${CMAKE_${_lang}_FLAGS} ${_flags}")
unset (${_lang})
unset (${_flags})
unset (_lang)
unset (_flags)
endforeach()
endmacro(add_compile_flags)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment