Skip to content

Instantly share code, notes, and snippets.

@JoniSt
Created August 18, 2021 17:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save JoniSt/a6cf867f215e9360f69dbacc2d5244a9 to your computer and use it in GitHub Desktop.
Save JoniSt/a6cf867f215e9360f69dbacc2d5244a9 to your computer and use it in GitHub Desktop.
diff --git a/src/sail-codecs/CMakeLists.txt b/src/sail-codecs/CMakeLists.txt
index ee06b9cd..75530943 100644
--- a/src/sail-codecs/CMakeLists.txt
+++ b/src/sail-codecs/CMakeLists.txt
@@ -7,27 +7,27 @@ list(SORT CODECS)
# Filter out codecs
#
if (SAIL_ONLY_CODECS)
- set(ENABLED_CODECS "")
+ set(ENABLED_CODECS_TEMP "")
foreach (codec IN LISTS CODECS)
if (${codec} IN_LIST SAIL_ONLY_CODECS)
- list(APPEND ENABLED_CODECS ${codec})
+ list(APPEND ENABLED_CODECS_TEMP ${codec})
endif()
endforeach()
- set(CODECS ${ENABLED_CODECS})
+ set(CODECS ${ENABLED_CODECS_TEMP})
endif()
if (SAIL_EXCEPT_CODECS)
- set(ENABLED_CODECS "")
+ set(ENABLED_CODECS_TEMP "")
foreach (codec IN LISTS CODECS)
if (NOT ${codec} IN_LIST SAIL_EXCEPT_CODECS)
- list(APPEND ENABLED_CODECS ${codec})
+ list(APPEND ENABLED_CODECS_TEMP ${codec})
endif()
endforeach()
- set(CODECS ${ENABLED_CODECS})
+ set(CODECS ${ENABLED_CODECS_TEMP})
endif()
# Add enabled codecs (but codecs still can disable themselves later due to missing dependencies).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment