Commit 3853531f6d11d1824b6a0ce0212c06e79483d22d

Cacodemon345 2021-03-15T10:43:14

Fix CMake script on Linux

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/cmake/sdlchecks.cmake b/cmake/sdlchecks.cmake
index 0e28df6..364cdb3 100644
--- a/cmake/sdlchecks.cmake
+++ b/cmake/sdlchecks.cmake
@@ -799,7 +799,7 @@ endmacro()
 # - PkgCheckModules
 macro(CheckEGL)
   pkg_check_modules(EGL egl)
-  string(REPLACE "-D_THREAD_SAFE;" "-D_THREAD_SAFE=1;" EGL_CFLAGS ${EGL_CFLAGS})
+  string(REPLACE "-D_THREAD_SAFE;" "-D_THREAD_SAFE=1;" EGL_CFLAGS "${EGL_CFLAGS}")
 endmacro()
 
 # Requires: