File tree Expand file tree Collapse file tree 3 files changed +12
-1
lines changed
externals/gamenetworkingsockets Expand file tree Collapse file tree 3 files changed +12
-1
lines changed Original file line number Diff line number Diff line change @@ -37,3 +37,10 @@ set_source_files_properties(
3737 TARGET_DIRECTORY GameNetworkingSockets_s
3838 PROPERTIES COMPILE_DEFINITIONS "WIN32_LEAN_AND_MEAN;VC_EXTRALEAN;NOMINMAX"
3939)
40+
41+ # avoid propagating unwanted flags
42+ add_library (GameNetworkingSockets STATIC dummy.cpp)
43+ target_link_libraries (GameNetworkingSockets PRIVATE GameNetworkingSockets_s)
44+ target_include_directories (GameNetworkingSockets INTERFACE $<TARGET_PROPERTY:GameNetworkingSockets_s,INTERFACE_INCLUDE_DIRECTORIES >)
45+ target_compile_definitions (GameNetworkingSockets INTERFACE STEAMNETWORKINGSOCKETS_STATIC_LINK)
46+ add_library (GameNetworkingSockets::GameNetworkingSockets ALIAS GameNetworkingSockets)
Original file line number Diff line number Diff line change 1+ void gamenetworkingsockets_dummy_unused_symbol_to_force_cpp_compilation ()
2+ {
3+ // do nothing
4+ }
Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ target_compile_features(cage-core PUBLIC cxx_std_${CMAKE_CXX_STANDARD})
1212target_include_directories (cage-core PUBLIC $<INSTALL_INTERFACE:include > $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR} /include >)
1313target_link_libraries (cage-core PRIVATE zlib libzstd_static simplefilewatcher fastnoise hsluv png_static cage-jpeg tiff tiffxx tinyexr stb xatlas pmp dualmc dr_libs ogg vorbis vorbisfile vorbisenc samplerate assimp bc7enc_rdo avir quickhull iwasm_static uni-algo cpr)
1414if (cage_use_steam_sockets)
15- target_link_libraries (cage-core PRIVATE GameNetworkingSockets_s )
15+ target_link_libraries (cage-core PRIVATE GameNetworkingSockets::GameNetworkingSockets )
1616 target_compile_definitions (cage-core PUBLIC "CAGE_USE_STEAM_SOCKETS" )
1717endif ()
1818target_link_libraries (cage-core PUBLIC unordered_dense plf)
You can’t perform that action at this time.
0 commit comments