Skip to content

Commit

Permalink
[Windows] cmake: make building tests optional (#2351)
Browse files Browse the repository at this point in the history
  • Loading branch information
apwojcik authored Nov 13, 2023
1 parent 546f936 commit c87e82a
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
10 changes: 7 additions & 3 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
set(CMAKE_CXX_EXTENSIONS OFF)

enable_testing()
include(CTest)

find_package(Threads REQUIRED)
find_package(ROCM 0.7.3 REQUIRED PATHS /opt/rocm)
Expand Down Expand Up @@ -782,8 +782,12 @@ add_subdirectory(src)
if(MIOPEN_BUILD_DRIVER)
add_subdirectory(driver)
endif()
add_subdirectory(test)
add_subdirectory(speedtests)

if(BUILD_TESTING)
add_subdirectory(test)
add_subdirectory(speedtests)
endif()

add_subdirectory(utils)
if(MIOPEN_ENABLE_FIN)
add_subdirectory(fin)
Expand Down
1 change: 0 additions & 1 deletion test/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,6 @@ endif()
configure_file("${MODEL_FILE}" "${PROJECT_BINARY_DIR}/share/miopen/perf_models/${MODEL_FILE_FILENAME}" COPYONLY)
endforeach()

include(CTest)
include(CheckCXXCompilerFlag)

option( MIOPEN_TEST_ALL "Run the full test suite" OFF )
Expand Down
1 change: 0 additions & 1 deletion test/gtest/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
include(gtest) #include gtest.cmake
enable_testing()

find_package(rocblas)

Expand Down

0 comments on commit c87e82a

Please sign in to comment.