diff --git a/CMakeModules/EosioTester.cmake.in b/CMakeModules/EosioTester.cmake.in index f47743fe5cb..741ee5f0e84 100644 --- a/CMakeModules/EosioTester.cmake.in +++ b/CMakeModules/EosioTester.cmake.in @@ -8,6 +8,15 @@ set(EOSIO_VERSION "@VERSION_MAJOR@.@VERSION_MINOR@.@VERSION_PATCH@") enable_testing() +if (UNIX) + if (APPLE) + if (LLVM_DIR STREQUAL "" OR NOT LLVM_DIR) + set(LLVM_DIR "/usr/local/opt/llvm@4/lib/cmake/llvm") + endif() + endif() +endif() + + find_package( Gperftools QUIET ) if( GPERFTOOLS_FOUND ) message( STATUS "Found gperftools; compiling tests with TCMalloc") diff --git a/CMakeModules/EosioTesterBuild.cmake.in b/CMakeModules/EosioTesterBuild.cmake.in index 5618fe0d149..04ac7da6fe5 100644 --- a/CMakeModules/EosioTesterBuild.cmake.in +++ b/CMakeModules/EosioTesterBuild.cmake.in @@ -8,6 +8,15 @@ set(EOSIO_VERSION "@VERSION_MAJOR@.@VERSION_MINOR@.@VERSION_PATCH@") enable_testing() +if (UNIX) + if (APPLE) + if (LLVM_DIR STREQUAL "" OR NOT LLVM_DIR) + set(LLVM_DIR "/usr/local/opt/llvm@4/lib/cmake/llvm") + endif() + endif() +endif() + + find_package( Gperftools QUIET ) if( GPERFTOOLS_FOUND ) message( STATUS "Found gperftools; compiling tests with TCMalloc")