Skip to content

Commit

Permalink
Merge pull request #28 from kenshi84/build-mac
Browse files Browse the repository at this point in the history
readjust CMakeLists.txt for mac build
  • Loading branch information
moneroexamples committed Jan 19, 2017
2 parents 826a5f2 + da11bea commit c41b20d
Showing 1 changed file with 6 additions and 25 deletions.
31 changes: 6 additions & 25 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -168,30 +168,7 @@ configure_files(${CMAKE_CURRENT_SOURCE_DIR}/src/templates ${CMAKE_CURRENT_BINARY
configure_files(${CMAKE_CURRENT_SOURCE_DIR}/src/templates/css ${CMAKE_CURRENT_BINARY_DIR}/templates/css)
configure_files(${CMAKE_CURRENT_SOURCE_DIR}/src/templates/partials ${CMAKE_CURRENT_BINARY_DIR}/templates/partials)

if (APPLE)
target_link_libraries(${PROJECT_NAME}
myxrm
myext
mstch
wallet
cryptonote_core
cryptonote_protocol
blockchain_db
cryptoxmr
blocks
lmdb
ringct
common
mnemonics
${Boost_LIBRARIES}
pthread
unbound
curl
dl
crypto
ssl)
else()
target_link_libraries(${PROJECT_NAME}
set(LIBRARIES
myxrm
myext
mstch
Expand All @@ -209,9 +186,13 @@ target_link_libraries(${PROJECT_NAME}
${Boost_LIBRARIES}
pthread
unbound
unwind
curl
dl
crypto
ssl)

if (!APPLE)
set(LIBRARIES ${LIBRARIES} unwind)
endif()

target_link_libraries(${PROJECT_NAME} ${LIBRARIES})

0 comments on commit c41b20d

Please sign in to comment.