On Mac, we don't want to run /sbin/ldconfig as it doesn't exist

Signed-off-by: Ian Johnson <ijohnson@wolfram.com>
This commit is contained in:
Ian Johnson 2016-04-19 14:08:02 -05:00
parent 3163cf2d70
commit 87112a7e21
3 changed files with 9 additions and 6 deletions

View File

@ -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)

View File

@ -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)

View File

@ -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)