mirror of
https://github.com/monero-project/monero.git
synced 2024-11-17 08:17:37 +00:00
make FreeBSD use -lcompat till we can fix ftime()
This commit is contained in:
parent
266c639f4f
commit
0e343ecfdf
2 changed files with 8 additions and 4 deletions
|
@ -130,6 +130,10 @@ elseif(NOT MSVC)
|
||||||
set(Boost_LIBRARIES "${Boost_LIBRARIES};rt;pthread")
|
set(Boost_LIBRARIES "${Boost_LIBRARIES};rt;pthread")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
if(FREEBSD)
|
||||||
|
set(BSD_COMPAT "compat")
|
||||||
|
endif()
|
||||||
|
|
||||||
set(COMMIT_ID_IN_VERSION ON CACHE BOOL "Include commit ID in version")
|
set(COMMIT_ID_IN_VERSION ON CACHE BOOL "Include commit ID in version")
|
||||||
file(MAKE_DIRECTORY "${CMAKE_BINARY_DIR}/version")
|
file(MAKE_DIRECTORY "${CMAKE_BINARY_DIR}/version")
|
||||||
if (NOT COMMIT_ID_IN_VERSION)
|
if (NOT COMMIT_ID_IN_VERSION)
|
||||||
|
|
|
@ -30,13 +30,13 @@ add_library(cryptonote_core ${CRYPTONOTE_CORE})
|
||||||
add_executable(daemon ${DAEMON} ${P2P} ${CRYPTONOTE_PROTOCOL})
|
add_executable(daemon ${DAEMON} ${P2P} ${CRYPTONOTE_PROTOCOL})
|
||||||
add_executable(connectivity_tool ${CONN_TOOL})
|
add_executable(connectivity_tool ${CONN_TOOL})
|
||||||
add_executable(simpleminer ${MINER})
|
add_executable(simpleminer ${MINER})
|
||||||
target_link_libraries(daemon rpc cryptonote_core crypto common upnpc-static ${CMAKE_THREAD_LIBS_INIT} ${Boost_LIBRARIES})
|
target_link_libraries(daemon rpc cryptonote_core crypto common upnpc-static ${CMAKE_THREAD_LIBS_INIT} ${Boost_LIBRARIES} ${BSD_COMPAT})
|
||||||
target_link_libraries(connectivity_tool cryptonote_core crypto common ${CMAKE_THREAD_LIBS_INIT} ${Boost_LIBRARIES})
|
target_link_libraries(connectivity_tool cryptonote_core crypto common ${CMAKE_THREAD_LIBS_INIT} ${Boost_LIBRARIES} ${BSD_COMPAT})
|
||||||
target_link_libraries(simpleminer cryptonote_core crypto common ${CMAKE_THREAD_LIBS_INIT} ${Boost_LIBRARIES})
|
target_link_libraries(simpleminer cryptonote_core crypto common ${CMAKE_THREAD_LIBS_INIT} ${Boost_LIBRARIES} ${BSD_COMPAT})
|
||||||
add_library(rpc ${RPC})
|
add_library(rpc ${RPC})
|
||||||
add_library(wallet ${WALLET})
|
add_library(wallet ${WALLET})
|
||||||
add_executable(simplewallet ${SIMPLEWALLET} )
|
add_executable(simplewallet ${SIMPLEWALLET} )
|
||||||
target_link_libraries(simplewallet wallet rpc cryptonote_core crypto common upnpc-static ${CMAKE_THREAD_LIBS_INIT} ${Boost_LIBRARIES})
|
target_link_libraries(simplewallet wallet rpc cryptonote_core crypto common upnpc-static ${CMAKE_THREAD_LIBS_INIT} ${Boost_LIBRARIES} ${BSD_COMPAT})
|
||||||
add_dependencies(daemon version)
|
add_dependencies(daemon version)
|
||||||
add_dependencies(rpc version)
|
add_dependencies(rpc version)
|
||||||
add_dependencies(simplewallet version)
|
add_dependencies(simplewallet version)
|
||||||
|
|
Loading…
Reference in a new issue