Skip to content

Commit

Permalink
fix error when given debug, optimized, or general keyword in link lib…
Browse files Browse the repository at this point in the history
…raries (#2913)
  • Loading branch information
MatusGuy committed Apr 25, 2024
1 parent 36db1cc commit d8fc931
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion mk/cmake/SuperTux/ProvidePhysfs.cmake
Expand Up @@ -13,8 +13,8 @@ endif()

if(USE_SYSTEM_PHYSFS)
add_library(LibPhysfs INTERFACE)
target_link_libraries(LibPhysfs INTERFACE ${PHYSFS_LIBRARY})
set_target_properties(LibPhysfs PROPERTIES
INTERFACE_LINK_LIBRARIES "${PHYSFS_LIBRARY}"
INTERFACE_INCLUDE_DIRECTORIES "${PHYSFS_INCLUDE_DIR}")
else()
if(NOT EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/external/physfs/CMakeLists.txt)
Expand Down
4 changes: 2 additions & 2 deletions mk/cmake/SuperTux/ProvideSDL2_ttf.cmake
Expand Up @@ -67,10 +67,10 @@ else()
endif()

add_library(LibSDL2_ttf STATIC IMPORTED)
target_link_libraries(LibSDL2_ttf INTERFACE "${SDL2_TTF_LINK_LIBRARIES}")
set_target_properties(LibSDL2_ttf PROPERTIES
IMPORTED_LOCATION "${SDL2_TTF_PREFIX}/lib/${CMAKE_STATIC_LIBRARY_PREFIX}SDL2_ttf${CMAKE_STATIC_LIBRARY_SUFFIX}"
INTERFACE_INCLUDE_DIRECTORIES "${SDL2_TTF_PREFIX}/include/SDL2"
INTERFACE_LINK_LIBRARIES "${SDL2_TTF_LINK_LIBRARIES}")
INTERFACE_INCLUDE_DIRECTORIES "${SDL2_TTF_PREFIX}/include/SDL2")

add_dependencies(LibSDL2_ttf SDL2_ttf_project)
endif()
Expand Down

0 comments on commit d8fc931

Please sign in to comment.