Changes to make libraries that use FC automatically get the right dependent libraries
This commit is contained in:
parent
c84e47120d
commit
0579b12b56
1 changed files with 5 additions and 1 deletions
|
|
@ -55,6 +55,10 @@ IF( WIN32 )
|
||||||
LIST(APPEND BOOST_COMPONENTS coroutine)
|
LIST(APPEND BOOST_COMPONENTS coroutine)
|
||||||
SET(Boost_LIBRARIES ${BOOST_LIBRARIES_TEMP} ${Boost_LIBRARIES})
|
SET(Boost_LIBRARIES ${BOOST_LIBRARIES_TEMP} ${Boost_LIBRARIES})
|
||||||
ENDIF()
|
ENDIF()
|
||||||
|
|
||||||
|
set( PLATFORM_SPECIFIC_LIBS WS2_32.lib )
|
||||||
|
# iphlpapi.lib
|
||||||
|
|
||||||
ELSE(WIN32)
|
ELSE(WIN32)
|
||||||
MESSAGE(STATUS "Configuring fc to build on Unix/Apple")
|
MESSAGE(STATUS "Configuring fc to build on Unix/Apple")
|
||||||
|
|
||||||
|
|
@ -213,7 +217,7 @@ target_include_directories(fc
|
||||||
${CMAKE_CURRENT_SOURCE_DIR}/vendor/easylzma/src
|
${CMAKE_CURRENT_SOURCE_DIR}/vendor/easylzma/src
|
||||||
)
|
)
|
||||||
|
|
||||||
target_link_libraries( fc PUBLIC easylzma_static ${Boost_LIBRARIES} ${OPENSSL_LIBRARIES} ${ZLIB_LIBRARIES} ${CMAKE_DL_LIBS} ${rt_library})
|
target_link_libraries( fc PUBLIC easylzma_static ${Boost_LIBRARIES} ${OPENSSL_LIBRARIES} ${ZLIB_LIBRARIES} ${PLATFORM_SPECIFIC_LIBS} ${RPCRT4} ${CMAKE_DL_LIBS} ${rt_library})
|
||||||
|
|
||||||
add_executable( ntp_test ntp_test.cpp )
|
add_executable( ntp_test ntp_test.cpp )
|
||||||
target_link_libraries( ntp_test fc )
|
target_link_libraries( ntp_test fc )
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue