Skip to content

Commit

Permalink
Revert "[CMake] Enable CXXFLAGS to include -fsycl with benchmarks; Up…
Browse files Browse the repository at this point in the history
…date Google benchmark version"

This reverts commit 99184a2.
  • Loading branch information
AD2605 committed Aug 16, 2024
1 parent f784ded commit a12747e
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions test/bench/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -29,20 +29,14 @@ find_package(SYCL)
set(BENCHMARK_ENABLE_TESTING OFF)
# The icpx compiler causes errors when in release mode:
set(BENCHMARK_ENABLE_WERROR OFF)

# The -fsycl sometimes passed through CMAKE_CXX_FLAGS requires C++17 which is
# incompatible with the C++ version required by benchmark.
set(CMAKE_CXX_FLAGS_TMP ${CMAKE_CXX_FLAGS})
set(CMAKE_CXX_FLAGS "")
# Fetch googlebenchmark:
include(FetchContent)
FetchContent_Declare(
googlebenchmark
GIT_REPOSITORY https://github.com/google/benchmark.git
GIT_TAG v1.8.5
GIT_TAG v1.7.1
)
FetchContent_MakeAvailable(googlebenchmark)
set(CMAKE_CXX_FLAGS ${CMAKE_CXX_FLAGS_TMP})

# Common function to add a benchmark
set(BENCHMARK_BIN_DIR "${CMAKE_CURRENT_BINARY_DIR}")
Expand Down

0 comments on commit a12747e

Please sign in to comment.