Skip to content

Commit

Permalink
make building tests optional (on by default) (#1887)
Browse files Browse the repository at this point in the history
  • Loading branch information
apwojcik committed Jun 27, 2023
1 parent 84a8f45 commit 632d69f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
8 changes: 6 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,9 @@ endif()

set(CMAKE_BUILD_RPATH "${CMAKE_BINARY_DIR}/lib")

project(migraphx)
project(migraphx LANGUAGES C CXX)
include(CTest)

find_package(ROCM REQUIRED)

find_path(HALF_INCLUDE_DIR half.hpp PATH_SUFFIXES half)
Expand Down Expand Up @@ -269,7 +271,9 @@ set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/lib)
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/bin)
add_subdirectory(src)
add_subdirectory(docs)
add_subdirectory(test)
if(BUILD_TESTING)
add_subdirectory(test)
endif()
add_subdirectory(tools)

set(DEST_DIR ${CMAKE_BINARY_DIR})
Expand Down
2 changes: 0 additions & 2 deletions test/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,6 @@

cmake_policy(SET CMP0057 NEW)

include(CTest)

find_package(Threads REQUIRED)
include(ProcessorCount)
ProcessorCount(N)
Expand Down

0 comments on commit 632d69f

Please sign in to comment.