Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1341 from chief1983/fix/solaris_math_h
Fix several issues blocking a Solaris compile
- Loading branch information
Showing
5 changed files
with
35 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,18 @@ | ||
|
||
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() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters