# HG changeset patch # User Sebastien Jodogne # Date 1393251030 -3600 # Node ID 312d04beb0a2aa51335a5ef0a9ef7441a1e731d2 # Parent 948720c72586e43bf3075b479cf82116b197840a branch for mac os build diff -r 948720c72586 -r 312d04beb0a2 CMakeLists.txt --- a/CMakeLists.txt Mon Feb 24 13:50:40 2014 +0100 +++ b/CMakeLists.txt Mon Feb 24 15:10:30 2014 +0100 @@ -348,6 +348,10 @@ ) endif() + elseif (${CMAKE_SYSTEM_NAME} STREQUAL "Darwin") + # TODO + target_link_libraries(OrthancClient pthread) + else() message(FATAL_ERROR "Support your platform here") endif() diff -r 948720c72586 -r 312d04beb0a2 Resources/CMake/BoostConfiguration.cmake --- a/Resources/CMake/BoostConfiguration.cmake Mon Feb 24 13:50:40 2014 +0100 +++ b/Resources/CMake/BoostConfiguration.cmake Mon Feb 24 15:10:30 2014 +0100 @@ -53,7 +53,8 @@ ) set(BOOST_SOURCES) - if (${CMAKE_SYSTEM_NAME} STREQUAL "Linux") + if (${CMAKE_SYSTEM_NAME} STREQUAL "Linux" OR + ${CMAKE_SYSTEM_NAME} STREQUAL "Darwin") list(APPEND BOOST_SOURCES ${BOOST_SOURCES_DIR}/libs/thread/src/pthread/once.cpp ${BOOST_SOURCES_DIR}/libs/thread/src/pthread/thread.cpp diff -r 948720c72586 -r 312d04beb0a2 Resources/CMake/GoogleLogConfiguration.cmake --- a/Resources/CMake/GoogleLogConfiguration.cmake Mon Feb 24 13:50:40 2014 +0100 +++ b/Resources/CMake/GoogleLogConfiguration.cmake Mon Feb 24 15:10:30 2014 +0100 @@ -28,7 +28,8 @@ set(ac_google_start_namespace "namespace google {") set(ac_google_end_namespace "}") - if (${CMAKE_SYSTEM_NAME} STREQUAL "Linux") + if (${CMAKE_SYSTEM_NAME} STREQUAL "Linux" OR + ${CMAKE_SYSTEM_NAME} STREQUAL "Darwin") set(ac_cv_have_unistd_h 1) set(ac_cv_have_stdint_h 1) set(ac_cv_have_systypes_h 0) @@ -83,7 +84,8 @@ ) endif() - if (${CMAKE_SYSTEM_NAME} STREQUAL "Linux") + if (${CMAKE_SYSTEM_NAME} STREQUAL "Linux" OR + ${CMAKE_SYSTEM_NAME} STREQUAL "Darwin") if ("${CMAKE_SYSTEM_VERSION}" STREQUAL "LinuxStandardBase") # Install the specific configuration for LSB SDK configure_file(