mirror of
https://github.com/KhronosGroup/OpenCL-CTS.git
synced 2026-03-26 08:49:02 +00:00
gles: Fix compile warnings. (#1070)
* gles: Fix compile warnings. For 32 and 64-bit Visual Studio and the Android Q NDK. * Fix formatting violations Co-authored-by: spauls <spauls@qti.qualcomm.com>
This commit is contained in:
committed by
GitHub
parent
17a0d09567
commit
6c8045911a
@@ -18,3 +18,11 @@ set (${MODULE_NAME}_SOURCES
|
||||
list(APPEND CLConform_LIBRARIES EGL GLESv2)
|
||||
|
||||
include(../CMakeCommon.txt)
|
||||
|
||||
if(DEFINED USE_GLES3)
|
||||
target_compile_definitions(${${MODULE_NAME}_OUT} PRIVATE GLES3)
|
||||
endif()
|
||||
if(MSVC)
|
||||
# Don't warn about using the portable "strdup" function.
|
||||
target_compile_definitions(${${MODULE_NAME}_OUT} PRIVATE _CRT_NONSTDC_NO_DEPRECATE)
|
||||
endif()
|
||||
Reference in New Issue
Block a user