Samples & Test - Compiler Updates (#468)

* Compiler - set CXX Compiler if not set

* CXX Compiler - Set CXX compiler in CTest

* Test - Ctest cleanup

* Samples - Update CXX Compiler option

[ROCm/rocdecode commit: 924d19eb65]
This commit is contained in:
Kiriti Gowda
2024-12-03 13:03:26 -08:00
committed by GitHub
parent d9091f0cc2
commit a7fd0610e3
8 changed files with 55 additions and 27 deletions
+6 -6
View File
@@ -22,12 +22,6 @@
# ##############################################################################
cmake_minimum_required(VERSION 3.10)
project(rocdecode-test)
# make test with CTest
enable_testing()
include(CTest)
if(NOT DEFINED ENHANCED_MESSAGE)
string(ASCII 27 Esc)
set(ColourReset "${Esc}[m")
@@ -46,6 +40,12 @@ else()
set(ROCM_PATH /opt/rocm CACHE PATH "${White}${PROJECT_NAME}: Default ROCm installation path${ColourReset}")
endif()
project(rocdecode-test)
# make test with CTest
enable_testing()
include(CTest)
# add find modules
list(APPEND CMAKE_MODULE_PATH ${ROCM_PATH}/share/rocdecode/cmake)