Skip to content

Commit

Permalink
Set CMAKE_EXE_LINKER_FLAGS for MacOS in CMakeLists.txt
Browse files Browse the repository at this point in the history
  • Loading branch information
tobbi committed Jul 5, 2023
1 parent fbfc1e2 commit 8730042
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,7 @@ jobs:
-DWARNINGS=ON -DWERROR=ON -DGLBINDING_ENABLED=$GLBINDING \
-DENABLE_DISCORD=ON -DCMAKE_INSTALL_MESSAGE=NEVER \
-DCMAKE_INSTALL_PREFIX=/usr -DINSTALL_SUBDIR_BIN=bin \
-DINSTALL_SUBDIR_SHARE=share/supertux2 -DBUILD_TESTS=ON \
-DCMAKE_EXE_LINKER_FLAGS="-L/usr/local/lib"
-DINSTALL_SUBDIR_SHARE=share/supertux2 -DBUILD_TESTS=ON
- name: Build and install
working-directory: build
Expand Down
1 change: 1 addition & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,7 @@ endif()

if(${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
add_definitions(-DMACOSX)
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -L/usr/local/lib")
endif()

## Add lots of dependencies to compiler switches
Expand Down

0 comments on commit 8730042

Please sign in to comment.