mirror of
https://github.com/KhronosGroup/OpenCL-CTS.git
synced 2026-03-19 06:09:01 +00:00
Fix compilation errors using ICC and MSVC - cmakes files (#319)
This commit is contained in:
committed by
Kévin Petit
parent
c313d902b5
commit
25aaad13cd
@@ -18,7 +18,8 @@ endif()
|
||||
|
||||
if(WIN32)
|
||||
set_source_files_properties(
|
||||
contractions.c
|
||||
contractions.c
|
||||
../../test_common/harness/mt19937.c
|
||||
../../test_common/harness/msvc9.c
|
||||
../../test_common/harness/mingw_compat.c
|
||||
../../test_common/harness/errorHelpers.c
|
||||
|
||||
@@ -22,6 +22,7 @@ add_executable(conformance_test_conversions
|
||||
|
||||
set_source_files_properties(
|
||||
Sleep.c test_conversions.c basic_test_conversions.c
|
||||
../../test_common/harness/mt19937.c
|
||||
../../test_common/harness/ThreadPool.c
|
||||
../../test_common/harness/rounding_mode.c
|
||||
../../test_common/harness/mingw_compat.c
|
||||
|
||||
@@ -19,6 +19,7 @@ add_executable(conformance_test_geometrics
|
||||
|
||||
set_source_files_properties(
|
||||
main.c
|
||||
../../test_common/harness/mt19937.c
|
||||
../../test_common/harness/errorHelpers.c
|
||||
../../test_common/harness/threadTesting.c
|
||||
../../test_common/harness/testHarness.c
|
||||
|
||||
@@ -46,6 +46,7 @@ set_source_files_properties(
|
||||
../../test_common/harness/rounding_mode.c
|
||||
../../test_common/harness/ThreadPool.c
|
||||
../../test_common/harness/msvc9.c
|
||||
../../test_common/harness/mt19937.c
|
||||
PROPERTIES LANGUAGE CXX)
|
||||
endif(MSVC)
|
||||
|
||||
|
||||
@@ -21,6 +21,7 @@ endif()
|
||||
set_source_files_properties(
|
||||
main.c
|
||||
test_multiple_contexts.c
|
||||
../../test_common/harness/mt19937.c
|
||||
../../test_common/harness/errorHelpers.c
|
||||
../../test_common/harness/threadTesting.c
|
||||
../../test_common/harness/testHarness.c
|
||||
|
||||
@@ -19,6 +19,7 @@ endif()
|
||||
set_source_files_properties(
|
||||
main.c readArray.c writeArray.c readImage.c writeImage.c copy.c
|
||||
execute.c execute_multipass.c
|
||||
../../test_common/harness/mt19937.c
|
||||
../../test_common/harness/testHarness.c
|
||||
../../test_common/harness/errorHelpers.c
|
||||
../../test_common/harness/kernelHelpers.c
|
||||
|
||||
@@ -24,6 +24,7 @@ set_source_files_properties(
|
||||
test_comparisons_float.cpp
|
||||
test_comparisons_double.cpp
|
||||
test_shuffles.cpp
|
||||
../../test_common/harness/mt19937.c
|
||||
../../test_common/harness/errorHelpers.c
|
||||
../../test_common/harness/threadTesting.c
|
||||
../../test_common/harness/testHarness.c
|
||||
|
||||
@@ -17,6 +17,7 @@ endif()
|
||||
set_source_files_properties(
|
||||
test_select.c
|
||||
util_select.c
|
||||
../../test_common/harness/mt19937.c
|
||||
../../test_common/harness/msvc9.c
|
||||
../../test_common/harness/kernelHelpers.c
|
||||
../../test_common/harness/errorHelpers.c
|
||||
|
||||
@@ -5,9 +5,9 @@ endfunction()
|
||||
|
||||
# Import function list from math_brute_force
|
||||
add_definitions(-DFUNCTION_LIST_ULPS_ONLY)
|
||||
|
||||
add_executable(
|
||||
conformance_test_spir
|
||||
set(SPIR_OUT conformance_test_spir)
|
||||
|
||||
set (SPIR_SOURCES
|
||||
main.cpp
|
||||
datagen.cpp
|
||||
run_build_test.cpp
|
||||
@@ -22,11 +22,17 @@ add_executable(
|
||||
../../test_common/harness/testHarness.c
|
||||
../../test_common/miniz/miniz.c)
|
||||
|
||||
add_executable(${SPIR_OUT}
|
||||
${SPIR_SOURCES})
|
||||
|
||||
|
||||
if(CMAKE_SYSTEM_PROCESSOR MATCHES "(x86)|(X86)|(amd64)|(AMD64)" AND NOT MSVC)
|
||||
set_source_files_properties(
|
||||
COMPILE_FLAGS -msse2)
|
||||
endif()
|
||||
|
||||
set_source_files_properties(${SPIR_SOURCES} PROPERTIES LANGUAGE CXX)
|
||||
|
||||
if(UNIX)
|
||||
set_target_properties(conformance_test_spir PROPERTIES
|
||||
COMPILE_FLAGS "-fexceptions -frtti")
|
||||
|
||||
@@ -19,6 +19,7 @@ endif()
|
||||
set_source_files_properties(
|
||||
main.c
|
||||
test_thread_dimensions.c
|
||||
../../test_common/harness/mt19937.c
|
||||
../../test_common/harness/errorHelpers.c
|
||||
../../test_common/harness/threadTesting.c
|
||||
../../test_common/harness/testHarness.c
|
||||
|
||||
@@ -23,6 +23,7 @@ set_source_files_properties(
|
||||
structs.c
|
||||
test_vec_align.c
|
||||
type_replacer.c
|
||||
../../test_common/harness/mt19937.c
|
||||
../../test_common/harness/testHarness.c
|
||||
../../test_common/harness/msvc9.c
|
||||
../../test_common/harness/kernelHelpers.c
|
||||
|
||||
@@ -22,6 +22,7 @@ set_source_files_properties(
|
||||
main.c
|
||||
structs.c
|
||||
type_replacer.c
|
||||
../../test_common/harness/mt19937.c
|
||||
../../test_common/harness/testHarness.c
|
||||
../../test_common/harness/msvc9.c
|
||||
../../test_common/harness/kernelHelpers.c
|
||||
|
||||
Reference in New Issue
Block a user