File: CommonFindSDL2.cmake

package info (click to toggle)
libsdl2-image 2.8.8%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,868 kB
  • sloc: ansic: 23,468; python: 1,280; sh: 603; makefile: 246
file content (22 lines) | stat: -rw-r--r-- 655 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# Common variables for FindSDL2*.cmake modules

set(_inc_suffixes include)
set(_lib_suffixes)
if(MSVC)
    if(CMAKE_SIZEOF_VOID_P EQUAL 4)
        list(APPEND _lib_suffixes "lib/x86")
    endif()
    if(CMAKE_SIZEOF_VOID_P EQUAL 8)
        list(APPEND _lib_suffixes "lib/x64")
    endif()
endif()
if(MINGW)
    if(CMAKE_SIZEOF_VOID_P EQUAL 4)
        list(APPEND _lib_suffixes "i686-w64-mingw32/lib")
        list(APPEND _inc_suffixes "i686-w64-mingw32/include")
    endif()
    if(CMAKE_SIZEOF_VOID_P EQUAL 8)
        list(APPEND _lib_suffixes "x86_64-w64-mingw32/lib")
        list(APPEND _inc_suffixes "x86_64-w64-mingw32/include")
    endif()
endif()