cmake_modules/FindSDL2_net.cmake
branchqmlfrontend
changeset 11699 83c40c1eb0e7
parent 11657 ae6706411b24
child 12383 e3d9abcc427a
equal deleted inserted replaced
11634:0af93f018701 11699:83c40c1eb0e7
    72 endif()
    72 endif()
    73 
    73 
    74 set(SDL2_NET_LIBRARIES ${SDL2_NET_LIBRARY})
    74 set(SDL2_NET_LIBRARIES ${SDL2_NET_LIBRARY})
    75 set(SDL2_NET_INCLUDE_DIRS ${SDL2_NET_INCLUDE_DIR})
    75 set(SDL2_NET_INCLUDE_DIRS ${SDL2_NET_INCLUDE_DIR})
    76 
    76 
       
    77 if(BUILD_ENGINE_JS)
       
    78     set(SDL2_NET_LIBRARY "sdl2_net_emscripten_internal")
       
    79     set(SDL2_NET_LIBRARIES "sdl2_net_emscripten_internal")
       
    80     set(SDL2_NET_INCLUDE_DIRS "${CMAKE_SYSTEM_INCLUDE_PATH}/SDL")
       
    81 endif()
       
    82 
    77 include(FindPackageHandleStandardArgs)
    83 include(FindPackageHandleStandardArgs)
    78 
    84 
    79 FIND_PACKAGE_HANDLE_STANDARD_ARGS(SDL2_net
    85 FIND_PACKAGE_HANDLE_STANDARD_ARGS(SDL2_net
    80                                   REQUIRED_VARS SDL2_NET_LIBRARIES SDL2_NET_INCLUDE_DIRS
    86                                   REQUIRED_VARS SDL2_NET_LIBRARIES SDL2_NET_INCLUDE_DIRS
    81                                   VERSION_VAR SDL2_NET_VERSION_STRING)
    87                                   VERSION_VAR SDL2_NET_VERSION_STRING)