Created
August 18, 2021 17:10
-
-
Save JoniSt/a6cf867f215e9360f69dbacc2d5244a9 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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