From da11bea4aa7c287c56be1b7f999b3c3a337aa2ed Mon Sep 17 00:00:00 2001 From: kenshi84 Date: Thu, 19 Jan 2017 14:05:24 +0900 Subject: [PATCH] readjust CMakeLists.txt for mac build --- CMakeLists.txt | 31 ++++++------------------------- 1 file changed, 6 insertions(+), 25 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 5120eff..466e009 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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 @@ -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})