From 7a4a544a5d0f8c844d00db5bd574aff1fc5cc617 Mon Sep 17 00:00:00 2001 From: Jim Derry Date: Tue, 3 Oct 2017 08:57:11 -0400 Subject: [PATCH] Squelch Mac OS X warning during build. No version bump. --- CMakeLists.txt | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index e0fb454..5cee9e1 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -17,7 +17,7 @@ # @date Consult git log. ############################################################################## -cmake_minimum_required (VERSION 2.8.7) +cmake_minimum_required (VERSION 2.8.12) set(LIB_NAME tidy) set(LIBTIDY_DESCRIPTION "${LIB_NAME} - HTML syntax checker") @@ -392,6 +392,9 @@ install( FILES ${HFILES} DESTINATION ${INCLUDE_INSTALL_DIR} ) #------------------------------------------------------------------------ if (BUILD_SHARED_LIB) set(name tidy-share) + if (UNIX AND APPLE) + set(CMAKE_MACOSX_RPATH 1) + endif () add_library ( ${name} SHARED ${CFILES} ${HFILES} ${LIBHFILES} ) set_target_properties( ${name} PROPERTIES OUTPUT_NAME ${LIB_NAME} )