Skip to content

Commit 48c0987

Browse files
authored
Merge pull request #1147 from robertszafa/find_dpcpp
Avoid MSVC flag with non-MSVC compilers on Windows
2 parents d9a5977 + 7495db8 commit 48c0987

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cmake/FindDPCPP.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ message(STATUS "DPC++ compiler flags: `${DPCPP_FLAGS}`")
4040

4141
# Explicitly set fp-model to precise to produce reliable results for floating
4242
# point operations.
43-
if(WIN32)
43+
if(MSVC)
4444
set(DPCPP_FP_FLAG "/fp:precise")
4545
else()
4646
set(DPCPP_FP_FLAG "-ffp-model=precise")

0 commit comments

Comments
 (0)