diff --git a/.github/workflows/macos.yml b/.github/workflows/macos.yml index 354a3286e98..b3c73ff8ea2 100644 --- a/.github/workflows/macos.yml +++ b/.github/workflows/macos.yml @@ -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 diff --git a/CMakeLists.txt b/CMakeLists.txt index 320d77080e2..5ee10737af9 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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