Skip to content

Commit

Permalink
Restrict flag to GCC/clang. Fixes #640.
Browse files Browse the repository at this point in the history
  • Loading branch information
FrancescAlted committed Nov 11, 2024
1 parent 9a57383 commit 5e0e856
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions bench/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,10 @@ if(UNIX AND NOT APPLE)
target_link_libraries(sframe_bench rt)
endif()
if(UNIX)
# Avoid a warning when using gcc without -fopenmp
target_compile_options(sum_openmp PRIVATE "-Wno-unknown-pragmas")
if(CMAKE_C_COMPILER_ID STREQUAL "GNU")
# Avoid a warning when using gcc without -fopenmp
target_compile_options(sum_openmp PRIVATE "-Wno-unknown-pragmas")
endif()
endif()
target_link_libraries(b2bench blosc_testing)
target_link_libraries(delta_schunk blosc_testing)
Expand Down

0 comments on commit 5e0e856

Please sign in to comment.