From c412ec07bdd535256a148a2b29c6dbd32c822e3b Mon Sep 17 00:00:00 2001 From: Izaak Beekman Date: Thu, 5 Dec 2024 15:05:30 -0800 Subject: [PATCH] Fix CMake syntax error --- CMakeLists.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index dd4243e..df8915c 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -416,8 +416,9 @@ if(NOT DEFINED ENV{TAU_ROOT}) get_filename_component(TAU_ROOT ${TAU_EXEC} DIRECTORY) # This will be a bin directory get_filename_component(TAU_ROOT ${TAU_ROOT} DIRECTORY) # This might be an arch directory string(REGEX REPLACE "(/x86_64$)|(/apple$)|(/craycnl$)" "" TAU_ROOT ${TAU_ROOT}) - set(TAU_ROOT $ENV{TAU_ROOT} CACHE PATH "TAU Root Directory") endif() + else() + set(TAU_ROOT $ENV{TAU_ROOT} CACHE PATH "TAU Root Directory") endif() find_file(TAU_CLANG_MAKEFILE