Fix shared library suffix on OSX
authorFlamefire
Tue, 17 Mar 2020 08:46:34 +0100
changeset 1368360f1e9fb5957
parent 13682 bd45c7649f7b
child 13684 aecf8c5a136a
Fix shared library suffix on OSX
sdl2-config.cmake.in
     1.1 --- a/sdl2-config.cmake.in	Mon Mar 30 14:26:21 2020 -0700
     1.2 +++ b/sdl2-config.cmake.in	Tue Mar 17 08:46:34 2020 +0100
     1.3 @@ -22,18 +22,18 @@
     1.4    set_target_properties(SDL2::SDL2 PROPERTIES
     1.5      INTERFACE_INCLUDE_DIRECTORIES "@includedir@/SDL2"
     1.6      IMPORTED_LINK_INTERFACE_LANGUAGES "C"
     1.7 -    IMPORTED_LOCATION "@libdir@/libSDL2.so"
     1.8 +    IMPORTED_LOCATION "@libdir@/${CMAKE_SHARED_LIBRARY_PREFIX}SDL2${CMAKE_SHARED_LIBRARY_SUFFIX}"
     1.9      INTERFACE_LINK_LIBRARIES "${SDL2_EXTRA_LINK_FLAGS}")
    1.10  
    1.11    add_library(SDL2::SDL2-static STATIC IMPORTED)
    1.12    set_target_properties(SDL2::SDL2-static PROPERTIES
    1.13      INTERFACE_INCLUDE_DIRECTORIES "@includedir@/SDL2"
    1.14      IMPORTED_LINK_INTERFACE_LANGUAGES "C"
    1.15 -    IMPORTED_LOCATION "@libdir@/libSDL2.a"
    1.16 +    IMPORTED_LOCATION "@libdir@/${CMAKE_STATIC_LIBRARY_PREFIX}SDL2${CMAKE_STATIC_LIBRARY_SUFFIX}"
    1.17      INTERFACE_LINK_LIBRARIES "${SDL2_EXTRA_LINK_FLAGS_STATIC}")
    1.18  
    1.19    add_library(SDL2::SDL2main STATIC IMPORTED)
    1.20    set_target_properties(SDL2::SDL2main PROPERTIES
    1.21      IMPORTED_LINK_INTERFACE_LANGUAGES "C"
    1.22 -    IMPORTED_LOCATION "@libdir@/libSDL2main.a")
    1.23 +    IMPORTED_LOCATION "@libdir@/${CMAKE_STATIC_LIBRARY_PREFIX}SDL2main${CMAKE_STATIC_LIBRARY_SUFFIX}")
    1.24  endif()