From aee18eb20a7258b7b838358868c444d3c795a153 Mon Sep 17 00:00:00 2001 From: Maneesh Gupta Date: Thu, 6 Jan 2022 12:02:12 +0530 Subject: [PATCH] SWDEV-316804 - Fix catch2 standalone build failure project needs to be defined at the beginning of the cmake file. --- tests/catch/CMakeLists.txt | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/tests/catch/CMakeLists.txt b/tests/catch/CMakeLists.txt index 56de9a6e63..67f5673d30 100644 --- a/tests/catch/CMakeLists.txt +++ b/tests/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")