[geos-commits] r2877 - trunk/tools

svn_geos at osgeo.org svn_geos at osgeo.org
Wed Jan 20 17:17:20 EST 2010


Author: mloskot
Date: 2010-01-20 17:17:20 -0500 (Wed, 20 Jan 2010)
New Revision: 2877

Modified:
   trunk/tools/CMakeLists.txt
Log:
Fixed bug with not setting proper permissions to geos-config while installing with CMake build configuration (#318).

Modified: trunk/tools/CMakeLists.txt
===================================================================
--- trunk/tools/CMakeLists.txt	2010-01-19 00:19:26 UTC (rev 2876)
+++ trunk/tools/CMakeLists.txt	2010-01-20 22:17:20 UTC (rev 2877)
@@ -13,13 +13,16 @@
 #################################################################################
 
 if(UNIX)
+
+  # Autoconf compatibility variables to use the same script source.
   set(prefix ${CMAKE_INSTALL_PREFIX})
   set(exec_prefix ${CMAKE_INSTALL_PREFIX}/bin)
 
   configure_file(${CMAKE_CURRENT_SOURCE_DIR}/geos-config.in
     ${CMAKE_CURRENT_BINARY_DIR}/geos-config @ONLY)
-endif()
 
-if(UNIX)
-  install(FILES ${CMAKE_CURRENT_BINARY_DIR}/geos-config DESTINATION bin/)
+  install(FILES ${CMAKE_CURRENT_BINARY_DIR}/geos-config
+    DESTINATION bin/
+    PERMISSIONS OWNER_READ OWNER_EXECUTE GROUP_READ GROUP_EXECUTE WORLD_READ WORLD_EXECUTE)
+
 endif()



More information about the geos-commits mailing list