Skip to content

Commit 3653c94

Browse files
committed
Don't override CMakeLists.txt
1 parent 0fee97e commit 3653c94

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

commands/init

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,13 @@ ln -fs .cppsm/.clang-format .clang-format
2323
ln -fs .cppsm/.gitignore .gitignore
2424
ln -fs .cppsm/.prettierrc .prettierrc
2525

26-
cat << EOF > CMakeLists.txt
26+
if [ ! -e CMakeLists.txt ]; then
27+
cat << EOF > CMakeLists.txt
2728
cmake_minimum_required(VERSION 3.9)
29+
project(${PWD##*/})
2830
include(.cppsm/c++17-no-rtti-no-exns.cmake)
2931
EOF
32+
fi
3033

3134
cp "$CPPSM/.travis.yml" .travis.yml
3235

0 commit comments

Comments
 (0)