Skip to content

Commit

Permalink
cmake: fix extensions parsing in PowerShell
Browse files Browse the repository at this point in the history
When EXTENSIONS is NONE, PowerShell passes a literary '' as an argument instead of an empty string. Use a string consisting of a single whitespace instead.
  • Loading branch information
Attractadore authored and Dav1dde committed Nov 9, 2021
1 parent 369fba4 commit 5fc92d7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmake/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ function(glad_add_library TARGET)
if(GG_EXTENSIONS)
list(FIND GG_EXTENSIONS NONE GG_EXT_NONE)
if(GG_EXT_NONE GREATER -1)
set(GLAD_EXTENSIONS "''")
set(GLAD_EXTENSIONS " ")
else()
list(REMOVE_DUPLICATES GG_EXTENSIONS)
list(JOIN GG_EXTENSIONS "," GLAD_EXTENSIONS)
Expand Down

0 comments on commit 5fc92d7

Please sign in to comment.