Skip to content

Commit bcb610f

Browse files
committed
Update ci.yml
1 parent e4d9f54 commit bcb610f

File tree

1 file changed

+2
-2
lines changed
  • templates/.github/workflows

1 file changed

+2
-2
lines changed

templates/.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ jobs:
6969
cd ${{ runner.temp }}/test-find-package
7070
7171
# Get project name from CMakeLists.txt
72-
PROJECT_NAME=$(grep -m1 "project(" ${{ github.workspace }}/CMakeLists.txt | sed 's/project(\(.*\))/\1/' | awk '{print $1}')
72+
PROJECT_NAME=$(grep -m1 "project(" ${{ github.workspace }}/CMakeLists.txt | sed 's/project(\([^)]*\)).*/\1/' | awk '{print $1}')
7373
7474
# Create test CMakeLists.txt
7575
cat > CMakeLists.txt << EOF
@@ -97,7 +97,7 @@ jobs:
9797
curl -L https://github.com/cpm-cmake/CPM.cmake/releases/latest/download/get_cpm.cmake -o cmake/CPM.cmake
9898
9999
# Get project name from CMakeLists.txt
100-
PROJECT_NAME=$(grep -m1 "project(" ${{ github.workspace }}/CMakeLists.txt | sed 's/project(\(.*\))/\1/' | awk '{print $1}')
100+
PROJECT_NAME=$(grep -m1 "project(" ${{ github.workspace }}/CMakeLists.txt | sed 's/project(\([^)]*\)).*/\1/' | awk '{print $1}')
101101
102102
# Create test CMakeLists.txt that uses CPMFindPackage
103103
cat > CMakeLists.txt << EOF

0 commit comments

Comments
 (0)