Skip to content

Commit

Permalink
CREATE_PROJECT: Explicitly add /opt/local/lib to support MacPorts
Browse files Browse the repository at this point in the history
This should hopefully be fairly harmless for other platforms,
as well as for Homebrew-users. But it doesn't seem like CMake
adds /opt/local/lib to it's linking setup by default.
  • Loading branch information
somaen committed Oct 20, 2023
1 parent d39a7a6 commit b0d53a7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions devtools/create_project/cmake.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,9 @@ if (TARGET SDL2::SDL2)
endif()
include_directories(${SDL2_INCLUDE_DIRS})
# Explicitly support MacPorts (hopefully harmless on other platforms)
link_directories(/opt/local/lib)
)";

for (const Feature &feature : setup.features) {
Expand Down

0 comments on commit b0d53a7

Please sign in to comment.