diff --git a/catch/CMakeLists.txt b/catch/CMakeLists.txt index 56de9a6e63..67f5673d30 100644 --- a/catch/CMakeLists.txt +++ b/catch/CMakeLists.txt @@ -1,4 +1,5 @@ cmake_minimum_required(VERSION 3.16.8) +project(hiptests) # Check if platform and compiler are set if(HIP_PLATFORM STREQUAL "amd") @@ -33,12 +34,6 @@ else() cmake_path(SET CMAKE_C_COMPILER "${HIP_PATH}/bin/hipcc.bat") endif() -if(NOT UNIX) - # In linux this reruns the cmake and fails with incorrect vars. - # so the project command is used only for windows - project(hiptests) -endif() - if(NOT DEFINED CATCH2_PATH) if(DEFINED ENV{CATCH2_PATH}) set(CATCH2_PATH $ENV{CATCH2_PATH} CACHE STRING "Catch2 Path")