foreach(_c_l ${_config_lines} )
if(_c_l MATCHES "^AC_INIT\\(\([^,]+\),\([^,]+\),\([^,]+\)\(.*\)")
- setstripped(PACKAGE ${CMAKE_MATCH_1})
+ setstripped(PACKAGE_tmp ${CMAKE_MATCH_1})
setstripped(PACKAGE_VERSION ${CMAKE_MATCH_2})
if(PACKAGE_VERSION MATCHES "^\([0-9]+\)\\.\([0-9]+\).*$")
set(LYX_DIR_VER "LYX_DIR_${CMAKE_MATCH_1}${CMAKE_MATCH_2}x")
endif()
endforeach(_c_l)
+if(UseVersionSuffix)
+ message("-- Using versioned PACKAGE. Disable with -DUseVersionSuffix=0")
+ set(PACKAGE ${PACKAGE_tmp}${LYX_INSTALL_SUFFIX})
+else()
+ message("-- PACKAGE not versioned, to enable use -DUseVersionSuffix=1")
+ set(PACKAGE ${PACKAGE_tmp})
+endif()
+
set(PROGRAM_SUFFIX "\"\"")
if(CMAKE_INSTALL_PREFIX_INITIALIZED_TO_DEFAULT)
# see http://www.cmake.org/pipermail/cmake/2006-October/011559.html