Permalink
Browse files

Add .bundle suffix to Ruby module on Mac (#4826)

  • Loading branch information...
1 parent 30621f8 commit 5f0a88ffa2202334eef5fc49ff3a0fb02f81cd01 @dakcarto dakcarto committed with tbonfort Dec 15, 2013
Showing with 3 additions and 0 deletions.
  1. +3 −0 mapscript/ruby/CMakeLists.txt
@@ -11,6 +11,9 @@ SWIG_LINK_LIBRARIES(rubymapscript ${RUBY_LIBRARY} ${MAPSERVER_LIBMAPSERVER})
set_target_properties(${SWIG_MODULE_rubymapscript_REAL_NAME} PROPERTIES PREFIX "")
set_target_properties(${SWIG_MODULE_rubymapscript_REAL_NAME} PROPERTIES OUTPUT_NAME mapscript)
+if(APPLE)
+ set_target_properties(${SWIG_MODULE_rubymapscript_REAL_NAME} PROPERTIES SUFFIX ".bundle")
+endif(APPLE)
get_target_property(LOC_MAPSCRIPT_LIB ${SWIG_MODULE_rubymapscript_REAL_NAME} LOCATION)
execute_process(COMMAND ${RUBY_EXECUTABLE} -r rbconfig -e "puts RbConfig::CONFIG['sitearchdir']" OUTPUT_VARIABLE RUBY_SITEARCHDIR OUTPUT_STRIP_TRAILING_WHITESPACE)

0 comments on commit 5f0a88f

Please sign in to comment.