From 87300428c790983c1db955a3931b3a0421aeda0b Mon Sep 17 00:00:00 2001 From: Tobias Markus Date: Wed, 5 Jul 2023 23:33:28 +0200 Subject: [PATCH] Set CMAKE_EXE_LINKER_FLAGS for MacOS in CMakeLists.txt --- .github/workflows/macos.yml | 3 +-- CMakeLists.txt | 1 + 2 files changed, 2 insertions(+), 2 deletions(-) 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