Skip to content

Commit

Permalink
removed part of code where the CXX_COMPILER was forced changed to g++…
Browse files Browse the repository at this point in the history
… or cl if it was not gnu
  • Loading branch information
Nguyen committed Nov 21, 2024
1 parent 92b761a commit 6b8917f
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions cmake/Dependencies.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -94,14 +94,6 @@ if(BUILD_BENCHMARK)
message(FATAL_ERROR "DownloadProject.cmake doesn't support multi-configuration generators.")
endif()
set(GOOGLEBENCHMARK_ROOT ${CMAKE_CURRENT_BINARY_DIR}/deps/googlebenchmark CACHE PATH "")
if(NOT (CMAKE_CXX_COMPILER_ID STREQUAL "GNU"))
# hip-clang cannot compile googlebenchmark for some reason
if(WIN32)
set(COMPILER_OVERRIDE "-DCMAKE_CXX_COMPILER=cl")
else()
set(COMPILER_OVERRIDE "-DCMAKE_CXX_COMPILER=g++")
endif()
endif()

download_project(
PROJ googlebenchmark
Expand Down

0 comments on commit 6b8917f

Please sign in to comment.