Simplify code according to review

This commit is contained in:
Julian Groß 2020-12-16 16:50:54 +01:00
parent dcd26c8ad6
commit b416ca1e17

View file

@ -41,12 +41,7 @@ endif()
file(WRITE "${CMAKE_CURRENT_BINARY_DIR}/_env/EXTERNAL_BUILD_ASSETS.txt" "${EXTERNAL_BUILD_ASSETS}")
MESSAGE(STATUS "EXTERNAL_BUILD_ASSETS: ${EXTERNAL_BUILD_ASSETS}")
set(GLES_OPTION OFF)
if( DEFINED ENV{USE_GLES} )
set(USE_GLES "$ENV{USE_GLES}")
set(GLES_OPTION "$ENV{USE_GLES}")
endif()
set(GLES_OPTION "$ENV{USE_GLES}")
# Will affect VCPKG dependencies
file(WRITE "${CMAKE_CURRENT_BINARY_DIR}/_env/USE_GLES.txt" "${GLES_OPTION}")