Skip to content

Commit

Permalink
Fix ANGLE_USE_X11 being dropped on Linux
Browse files Browse the repository at this point in the history
  • Loading branch information
robmikh committed Jun 14, 2018
1 parent 0f39ed5 commit 7c98747
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion ports/angle/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -226,6 +226,14 @@ else()
set(LIBANGLE_RENDERER_PLATFORM )
endif()

if(LINUX)
set(LIBANGLE_RENDERER_COMPILEDEF
-DANGLE_USE_X11
)
else()
set(LIBANGLE_RENDERER_COMPILEDEF )
endif()

add_library(libANGLE STATIC ${LIBANGLE_SOURCES})
target_link_libraries(libANGLE PRIVATE
angle::common
Expand All @@ -239,7 +247,7 @@ target_compile_definitions(libANGLE
PRIVATE -DANGLE_ENABLE_NULL
PUBLIC
-DLIBANGLE_IMPLEMENTATION
$<$<BOOL:${LINUX}>:ANGLE_USE_X11>
${LIBANGLE_RENDERER_COMPILEDEF}
)
add_library(angle::libANGLE ALIAS libANGLE)

Expand Down

0 comments on commit 7c98747

Please sign in to comment.