mirror of
https://github.com/scp-fs2open/fs2open.github.com.git
synced 2026-11-07 08:15:59 -10:00
19 lines
505 B
CMake
19 lines
505 B
CMake
|
|
target_compile_definitions(platform INTERFACE SCP_SOLARIS)
|
|
|
|
find_library(SOCKET_LIB socket)
|
|
|
|
if (NOT SOCKET_LIB)
|
|
message(FATAL_ERROR "Couldn't find libsocket! Please install it and rerun the configuration.")
|
|
else()
|
|
target_link_libraries(platform INTERFACE "${SOCKET_LIB}")
|
|
endif()
|
|
|
|
find_library(NSL_LIB nsl)
|
|
|
|
if (NOT NSL_LIB)
|
|
message(FATAL_ERROR "Couldn't find libnsl! Please install it and rerun the configuration.")
|
|
else()
|
|
target_link_libraries(platform INTERFACE "${NSL_LIB}")
|
|
endif()
|