Skip to content

Commit

Permalink
Merge pull request #9443 from cgcgcg/pyTrilinosFix
Browse files Browse the repository at this point in the history
PyTrilinos: Get CMAKE_BINARY_DIR directly from CMake
  • Loading branch information
cgcgcg authored Jul 18, 2021
2 parents e470ad8 + 135ae46 commit 88a636e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions packages/PyTrilinos/util/copyWithCMakeSubstitutions.py.in
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit 88a636e

Please sign in to comment.