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>
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