From 20b9a71ce7e18119ffbb9e81f2400ec287c0b6c9 Mon Sep 17 00:00:00 2001 From: Thilina Ratnayaka Date: Wed, 29 Oct 2025 21:26:38 +0000 Subject: [PATCH] Get rid of USE_CMAKE definition --- CMakeLists.txt | 1 - tests/src/internal/io/cache.cpp | 3 --- tests/src/internal/io/utils.cpp | 3 --- 3 files changed, 7 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 95e228571..7f3ca1d6b 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -120,7 +120,6 @@ target_include_directories(libocca PUBLIC target_include_directories(libocca PRIVATE $) -target_compile_definitions(libocca PRIVATE -DUSE_CMAKE) if (OCCA_CLANG_BASED_TRANSPILER) target_link_libraries(libocca PRIVATE occa::occa-transpiler) target_compile_definitions(libocca PRIVATE -DBUILD_WITH_CLANG_BASED_TRANSPILER) diff --git a/tests/src/internal/io/cache.cpp b/tests/src/internal/io/cache.cpp index 31af9fdaf..9f049ca92 100644 --- a/tests/src/internal/io/cache.cpp +++ b/tests/src/internal/io/cache.cpp @@ -10,9 +10,6 @@ void testHashDir(); void testBuild(); int main(const int argc, const char **argv) { -#ifndef USE_CMAKE - occa::env::OCCA_CACHE_DIR = occa::io::dirname(__FILE__); -#endif srand(time(NULL)); testCacheInfoMethods(); diff --git a/tests/src/internal/io/utils.cpp b/tests/src/internal/io/utils.cpp index 05939fa13..4935ead5b 100644 --- a/tests/src/internal/io/utils.cpp +++ b/tests/src/internal/io/utils.cpp @@ -11,9 +11,6 @@ void testDirMethods(); void testIOMethods(); int main(const int argc, const char **argv) { -#ifndef USE_CMAKE - occa::env::OCCA_CACHE_DIR = "/occa/cache/dir/"; -#endif srand(time(NULL)); testPathMethods();