mirror of
https://github.com/KhronosGroup/OpenCL-CTS.git
synced 2026-03-19 06:09:01 +00:00
Fixes narrowing conversion build errors in test_common Removing disable of narrowing errors in main CMakeLists.txt and moving it down to specific test_conformance suite's CMakeLists.txt where there are many more build errors revealed from this fix. Fixes a few simple issues under test_conformance in the process. Contributes #787 Signed-off-by: Ellen Norris-Thompson <ellen.norris-thompson@arm.com> --------- Signed-off-by: Ellen Norris-Thompson <ellen.norris-thompson@arm.com>
18 lines
497 B
CMake
18 lines
497 B
CMake
set(MODULE_NAME CONVERSIONS)
|
|
|
|
if(CMAKE_COMPILER_IS_GNUCC OR "${CMAKE_CXX_COMPILER_ID}" MATCHES "(Apple)?Clang")
|
|
add_cxx_flag_if_supported(-Wno-narrowing)
|
|
endif()
|
|
|
|
set (${MODULE_NAME}_SOURCES
|
|
Sleep.cpp test_conversions.cpp basic_test_conversions.cpp
|
|
)
|
|
|
|
if("${CLConform_TARGET_ARCH}" STREQUAL "ARM" OR "${CLConform_TARGET_ARCH}" STREQUAL "ARM64")
|
|
list(APPEND ${MODULE_NAME}_SOURCES fplib.cpp)
|
|
endif()
|
|
|
|
set_gnulike_module_compile_flags("-Wno-sign-compare")
|
|
|
|
include(../CMakeCommon.txt)
|