File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
templates/.github/workflows Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 6969 cd ${{ runner.temp }}/test-find-package
7070
7171 # Get project name from CMakeLists.txt
72- PACKAGE_NAME=$(grep -m1 "project(" ${{ github.workspace }}/CMakeLists.txt | sed 's/project(\([^)]*\)).*/\1/' | awk '{print $1}')
72+ PACKAGE_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
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- PACKAGE_NAME=$(grep -m1 "project(" ${{ github.workspace }}/CMakeLists.txt | sed 's/project(\([^)]*\)).*/\1/' | awk '{print $1}')
100+ PACKAGE_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
You can’t perform that action at this time.
0 commit comments