Skip to content

Commit 71a5d0d

Browse files
authored
Get rid of USE_CMAKE definition (#803)
1 parent 95401b1 commit 71a5d0d

3 files changed

Lines changed: 0 additions & 7 deletions

File tree

CMakeLists.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,6 @@ target_include_directories(libocca PUBLIC
120120
target_include_directories(libocca PRIVATE
121121
$<BUILD_INTERFACE:${OCCA_SOURCE_DIR}/src>)
122122

123-
target_compile_definitions(libocca PRIVATE -DUSE_CMAKE)
124123
if (OCCA_CLANG_BASED_TRANSPILER)
125124
target_link_libraries(libocca PRIVATE occa::occa-transpiler)
126125
target_compile_definitions(libocca PRIVATE -DBUILD_WITH_CLANG_BASED_TRANSPILER)

tests/src/internal/io/cache.cpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,6 @@ void testHashDir();
1010
void testBuild();
1111

1212
int main(const int argc, const char **argv) {
13-
#ifndef USE_CMAKE
14-
occa::env::OCCA_CACHE_DIR = occa::io::dirname(__FILE__);
15-
#endif
1613
srand(time(NULL));
1714

1815
testCacheInfoMethods();

tests/src/internal/io/utils.cpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,6 @@ void testDirMethods();
1111
void testIOMethods();
1212

1313
int main(const int argc, const char **argv) {
14-
#ifndef USE_CMAKE
15-
occa::env::OCCA_CACHE_DIR = "/occa/cache/dir/";
16-
#endif
1714
srand(time(NULL));
1815

1916
testPathMethods();

0 commit comments

Comments
 (0)