Commit eb5a2275 authored by Dominik Charousset's avatar Dominik Charousset

Fix path in generated config.status

parent 21628e3e
...@@ -211,7 +211,7 @@ case "$CMakeBuildDir" in ...@@ -211,7 +211,7 @@ case "$CMakeBuildDir" in
CMakeAbsoluteBuildDir="$CMakeBuildDir" CMakeAbsoluteBuildDir="$CMakeBuildDir"
;; ;;
*) *)
CMakeAbsoluteBuildDir="$PWD/$CMakeBuildDir" CMakeAbsoluteBuildDir="$SourceDir/$CMakeBuildDir"
;; ;;
esac esac
...@@ -235,7 +235,7 @@ fi ...@@ -235,7 +235,7 @@ fi
# Generate a config.status file that allows re-running a clean build. # Generate a config.status file that allows re-running a clean build.
printf "#!/bin/sh\n\n" > config.status printf "#!/bin/sh\n\n" > config.status
printf "# Switch to the source of this build directory.\n" >> config.status printf "# Switch to the source of this build directory.\n" >> config.status
printf "cd \"%s\"\n\n" "$CMakeAbsoluteBuildDir" >> config.status printf "cd \"%s\"\n\n" "$SourceDir" >> config.status
printf "# Invoke the command to configure this build.\n" >> config.status printf "# Invoke the command to configure this build.\n" >> config.status
if [ -n "$CXX" ]; then if [ -n "$CXX" ]; then
printf "CXX=\"%s\"\n" "$CXX" >> config.status printf "CXX=\"%s\"\n" "$CXX" >> config.status
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment