Blob Blame History Raw
diff -up ./CMakeLists.txt.rpath ./CMakeLists.txt
--- ./CMakeLists.txt.rpath	2014-09-28 13:26:00.119293262 -0400
+++ ./CMakeLists.txt	2014-09-28 13:27:14.241126959 -0400
@@ -210,7 +210,10 @@ if (MSVC OR CMAKE_CONFIGURATION_TYPES)
   set (CMAKE_DEBUG_POSTFIX _d)
 endif ()
 
-if (NOT MSVC)
+option (USE_RPATH 
+  "Include rpath in installed binaries" ON)
+
+if (NOT MSVC AND USE_RPATH)
   # Set the run time path for shared libraries for non-Windows machines.
   # (1) include link path for external packages (not needed with
   # GeographicLib because there are no external packages).