Skip to content

Commit

Permalink
Match only one file for cp in make for macOS
Browse files Browse the repository at this point in the history
On macOS, the glob at the end of the `Makefile` matched three files,
so it failed.
This fix works on macOS and Linux.
  • Loading branch information
Yan authored and Shinmera committed Nov 28, 2023
1 parent 41624fd commit d1516c3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,4 @@ all:
mkdir -p build ../static
cmake -B build/ -DCMAKE_BUILD_TYPE=ReleaseWithDebug -DBUILD_SHARED_LIBS=ON -DGLFW_BUILD_EXAMPLES=OFF -DGLFW_BUILD_TESTS=OFF -DGLFW_BUILD_DOCS=OFF -DCMAKE_C_FLAGS="$(CFLAGS)" $(CMAKEFLAGS)
$(MAKE) -C build
cp build/src/*glfw*.$(EXT) ../static/libglfw-$(OS)-$(ARCH).$(EXT)
cp build/src/*glfw.$(EXT) ../static/libglfw-$(OS)-$(ARCH).$(EXT)

0 comments on commit d1516c3

Please sign in to comment.