tcc compatibility
authorkoda
Wed, 03 Jul 2013 17:35:17 +0200
changeset 9313 62032a4cd00b
parent 9311 5baf10a52f43
child 9315 15487f7fed42
tcc compatibility
cmake_modules/paths.cmake
--- a/cmake_modules/paths.cmake	Wed Jul 03 01:58:45 2013 +0200
+++ b/cmake_modules/paths.cmake	Wed Jul 03 17:35:17 2013 +0200
@@ -61,8 +61,10 @@
 set(CMAKE_INSTALL_RPATH_ESCAPED "\\\\$$ORIGIN/../${target_library_install_dir}/:\\\\$$ORIGIN/:${CMAKE_INSTALL_PREFIX}/${target_library_install_dir}/")
 
 if(UNIX AND NOT APPLE)
-    #make sure $ORIGIN is respected
-    add_linker_flag("-zorigin")
+    if(CMAKE_COMPILER_IS_GNUCC)
+       #make sure $ORIGIN is respected
+        add_linker_flag("-zorigin")
+    endif()
     #apply RPATH settings to pascal executables
     add_flag_append(CMAKE_Pascal_FLAGS "-k-rpath -k'${CMAKE_INSTALL_RPATH_ESCAPED}'")
     #until we link with external things there is no need to set rpath on haskell