From 87112a7e21ba8046f4a41d623155198b043508dd Mon Sep 17 00:00:00 2001 From: Ian Johnson Date: Tue, 19 Apr 2016 14:08:02 -0500 Subject: [PATCH] On Mac, we don't want to run /sbin/ldconfig as it doesn't exist Signed-off-by: Ian Johnson --- lib/CMakeLists.txt | 5 +++-- lib/cpp/CMakeLists.txt | 5 +++-- src/CMakeLists.txt | 5 +++-- 3 files changed, 9 insertions(+), 6 deletions(-) diff --git a/lib/CMakeLists.txt b/lib/CMakeLists.txt index fc4c8da7..b2653855 100644 --- a/lib/CMakeLists.txt +++ b/lib/CMakeLists.txt @@ -90,6 +90,7 @@ set_target_properties(libmosquitto PROPERTIES install(TARGETS libmosquitto RUNTIME DESTINATION ${BINDIR} LIBRARY DESTINATION ${LIBDIR}) install(FILES mosquitto.h DESTINATION ${INCLUDEDIR}) -if (UNIX) +if (UNIX AND NOT APPLE) install(CODE "EXEC_PROGRAM(/sbin/ldconfig)") -endif (UNIX) +endif (UNIX AND NOT APPLE) + diff --git a/lib/cpp/CMakeLists.txt b/lib/cpp/CMakeLists.txt index 0a9fd914..2a81c2bf 100644 --- a/lib/cpp/CMakeLists.txt +++ b/lib/cpp/CMakeLists.txt @@ -13,6 +13,7 @@ set_target_properties(mosquittopp PROPERTIES install(TARGETS mosquittopp RUNTIME DESTINATION ${BINDIR} LIBRARY DESTINATION ${LIBDIR}) install(FILES mosquittopp.h DESTINATION ${INCLUDEDIR}) -if (UNIX) +if (UNIX AND NOT APPLE) install(CODE "EXEC_PROGRAM(/sbin/ldconfig)") -endif (UNIX) +endif (UNIX AND NOT APPLE) + diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 09ae1f3f..db537c90 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -154,7 +154,8 @@ if (${WITH_TLS} STREQUAL ON) install(TARGETS mosquitto_passwd RUNTIME DESTINATION ${BINDIR} LIBRARY DESTINATION ${LIBDIR}) endif (${WITH_TLS} STREQUAL ON) -if (UNIX) +if (UNIX AND NOT APPLE) install(CODE "EXEC_PROGRAM(/sbin/ldconfig)") -endif (UNIX) +endif (UNIX AND NOT APPLE) +