Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions opencl/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@ include(FetchContent)

# Suppress warnings related to dependencies
if (MSVC)
add_definitions(
-wd4133 # Suppress ''function': incompatible types - from 'char [9]' to 'LPCWSTR''
-wd4152 # Suppress 'nonstandard extension, function/data pointer conversion in expression'
-wd4201 # Suppress 'nonstandard extension used: nameless struct/union'
)
add_definitions(
-wd4133 # Suppress ''function': incompatible types - from 'char [9]' to 'LPCWSTR''
-wd4152 # Suppress 'nonstandard extension, function/data pointer conversion in expression'
-wd4201 # Suppress 'nonstandard extension used: nameless struct/union'
)
endif()

# Repo URLs
Expand Down
1 change: 1 addition & 0 deletions sycl/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ if(MSVC)
# Skip asynchronous C++ exceptions catching and assume "extern C" functions
# never throw C++ exceptions.
set(LLVM_REQUIRES_EH ON)
set(LLVM_REQUIRES_RTTI ON)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /EHsc")

# Add PDB debug information
Expand Down