mirror of
https://github.com/KhronosGroup/OpenCL-CTS.git
synced 2026-03-23 07:39: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
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user