]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
do_cmake: Warn user about slow debug performance only for not set
authorJunyoung, Sung <junyoung.sung@navercorp.com>
Thu, 24 Oct 2019 07:57:57 +0000 (16:57 +0900)
committerJunyoung, Sung <junyoung.sung@navercorp.com>
Thu, 24 Oct 2019 15:48:59 +0000 (00:48 +0900)
Signed-off-by: Junyoung, Sung <junyoung.sung@navercorp.com>
do_cmake.sh

index 8ea1b08f3e2d10b9d09d91b9043e1d007f10afe6..2e63195f4bf1c4025ff7668b6f29f529c8d08ad1 100755 (executable)
@@ -64,7 +64,9 @@ erasure code dir = lib
 EOF
 
 echo done.
-cat <<EOF
+
+if [[ ! $ARGS =~ "-DCMAKE_BUILD_TYPE" ]]; then
+  cat <<EOF
 
 ****
 WARNING: do_cmake.sh now creates debug builds by default. Performance
@@ -72,3 +74,5 @@ may be severely affected. Please use -DCMAKE_BUILD_TYPE=RelWithDebInfo
 if a performance sensitive build is required.
 ****
 EOF
+fi
+