Skip to content

Commit

Permalink
Gersemi formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
darren-amd committed Nov 18, 2024
1 parent 97b68cf commit 3f6b610
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
7 changes: 5 additions & 2 deletions HIP-Basic/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -92,8 +92,11 @@ if(NOT "${GPU_RUNTIME}" STREQUAL "CUDA")
endif()
endif()

if(CMAKE_CXX_COMPILER_ID STREQUAL "GNU" AND CMAKE_CXX_COMPILER_VERSION VERSION_LESS "10.4")
# g++ < 10.4 does not support all required C++17 features
if(
CMAKE_CXX_COMPILER_ID STREQUAL "GNU"
AND CMAKE_CXX_COMPILER_VERSION VERSION_LESS "10.4"
)
# g++ < 10.4 does not support all required C++17 features
else()
add_subdirectory(module_api)
endif()
Expand Down
7 changes: 5 additions & 2 deletions Tutorials/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,11 @@ project(Tutorials LANGUAGES CXX)
file(RELATIVE_PATH folder_bin ${CMAKE_SOURCE_DIR} ${CMAKE_CURRENT_SOURCE_DIR})
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin/${folder_bin})

if(CMAKE_CXX_COMPILER_ID STREQUAL "GNU" AND CMAKE_CXX_COMPILER_VERSION VERSION_LESS "10.4")
# g++ < 10.4 does not support all required C++17 features
if(
CMAKE_CXX_COMPILER_ID STREQUAL "GNU"
AND CMAKE_CXX_COMPILER_VERSION VERSION_LESS "10.4"
)
# g++ < 10.4 does not support all required C++17 features
else()
add_subdirectory(reduction)
endif()

0 comments on commit 3f6b610

Please sign in to comment.