Fix add_shader GLSL_VERSION argument parsing

This commit is contained in:
Lectem
2018-01-21 10:45:38 +01:00
committed by Joshua Brookover
parent 45f3e3dfe4
commit 5030df7fc7

View File

@@ -72,8 +72,8 @@ function( add_shader ARG_FILE )
set( DX11_PROFILE PROFILE ${D3D_PREFIX}_${ARG_DX11_MODEL} )
endif()
set( GLSL_PROFILE PROFILE 120 )
if( ARG_GLSL )
set( GLSL_PROFILE PROFILE ${ARG_GLSL} )
if( ARG_GLSL_VERSION )
set( GLSL_PROFILE PROFILE ${ARG_GLSL_VERSION} )
endif()
# Add commands
@@ -97,8 +97,8 @@ function( add_shader ARG_FILE )
)
elseif( "${PLATFORM}" STREQUAL "metal" )
list( APPEND OPTIONS
WINDOWS
${HLSL_PROFILE}
OSX
PROFILE metal
OUTPUT ${OUTPUT}
)
elseif( "${PLATFORM}" STREQUAL "glsl" )