# HG changeset patch
# User koda
# Date 1377338440 -7200
# Node ID 276f6d7d9e2e97c6f9717fab2cd8199a4d78a430
# Parent  37fcb9a796e601c6bac9151bbfe11a676efc69a4
fix shared library loading by using the right variable

diff -r 37fcb9a796e6 -r 276f6d7d9e2e cmake_modules/CMakePascalInformation.cmake
--- a/cmake_modules/CMakePascalInformation.cmake	Sat Aug 24 01:13:58 2013 +0200
+++ b/cmake_modules/CMakePascalInformation.cmake	Sat Aug 24 12:00:40 2013 +0200
@@ -58,7 +58,7 @@
 
 if(NOT CMAKE_SHARED_LIBRARY_RPATH_LINK_Pascal_FLAG)
 #-Wl,-rpath-link,
-    set(CMAKE_SHARED_LIBRARY_RUNTIME_Pascal_FLAG "-k-rpath-link")
+    set(CMAKE_SHARED_LIBRARY_RPATH_LINK_Pascal_FLAG "-k-rpath-link")
 endif(NOT CMAKE_SHARED_LIBRARY_RPATH_LINK_Pascal_FLAG)
 
 # for most systems a module is the same as a shared library