x11_egl: use quotes to include glesv1_cm directories
authorJuan A. Suarez Romero <jasuarez@igalia.com>
Fri, 30 Jun 2017 12:22:35 +0000 (14:22 +0200)
committerJuan A. Suarez Romero <jasuarez@igalia.com>
Fri, 30 Jun 2017 14:07:11 +0000 (16:07 +0200)
Modifying the CMAKE_EXE_LINKER_FLAGS requires to set the new options
between quotes.

Otherwise, cmake will join the elements with semicolons, generating
incorrect linker flags.

Test: cmake . -DDEQP_TARGET=x11_egl && make
Change-Id: I4d95dc37b6d91ab787b9c2e5568cbe2f08dd472b
Signed-off-by: Juan A. Suarez Romero <jasuarez@igalia.com>
targets/x11_egl/x11_egl.cmake

index b36eb301c4cdace24898b3af44fa2dd70dfbac00..dca529a494d5569cb3b957b18cd42c5796e71b15 100644 (file)
@@ -38,7 +38,7 @@ PKG_CHECK_MODULES(GLES1 glesv1_cm)
 if (GLES1_LIBRARIES)
        set(DEQP_SUPPORT_GLES1  ON)
        set(DEQP_GLES1_LIBRARIES ${GLES1_LIBRARIES})
-       set(CMAKE_EXE_LINKER_FLAGS ${CMAKE_EXE_LINKER_FLAGS} -L${GLES1_LIBRARY_DIRS})
+       set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -L${GLES1_LIBRARY_DIRS}")
        if ("${PKG_GLES1_INCLUDE_DIRS}" STREQUAL "")
                # PKG_GLES1_INCLUDE_DIRS empty, see if matching include
                # path (GLES/gl.h) exists beside library directory