diff --git a/packages/PyTrilinos/util/copyWithCMakeSubstitutions.py.in b/packages/PyTrilinos/util/copyWithCMakeSubstitutions.py.in index d30528144d06..ee76cca284d8 100755 --- a/packages/PyTrilinos/util/copyWithCMakeSubstitutions.py.in +++ b/packages/PyTrilinos/util/copyWithCMakeSubstitutions.py.in @@ -94,8 +94,7 @@ def main(): exit(-2) # Obtain the dictionary of CMake cache variables - makefileVariables = MakefileVariables.processMakefile("Makefile") - cmakeBinaryDir = makefileVariables["CMAKE_BINARY_DIR"] + cmakeBinaryDir = "@CMAKE_BINARY_DIR@" # Remove quotes from cmakeBinaryDir. cmakeBinaryDir = cmakeBinaryDir.replace("\"", "").replace("'", "") cmakeCacheFile = os.path.join(cmakeBinaryDir, "CMakeCache.txt")