Compare commits

...
Sign in to create a new pull request.

1 commit

Author SHA1 Message Date
Rich Mattes
b55f8b4aae Update architecture check for older cmake
Disable the architecture bit-ness check in the cmake version file in a
way compatible with older versions of CMake that don't support the
ARCH_INDEPENDENT argument.
2021-02-27 14:40:02 -05:00
2 changed files with 4 additions and 2 deletions

View file

@ -21,8 +21,8 @@ diff -up ./CMakeLists.txt.fedora ./CMakeLists.txt
${CMAKE_CURRENT_BINARY_DIR}/${cmake_conf_version_file}
VERSION "${URDF_VERSION}"
- COMPATIBILITY SameMajorVersion)
+ COMPATIBILITY SameMajorVersion
+ ARCH_INDEPENDENT)
+ COMPATIBILITY SameMajorVersion)
+ #ARCH_INDEPENDENT)
install(FILES
"${CMAKE_BINARY_DIR}/${cmake_conf_file}"
"${CMAKE_BINARY_DIR}/${cmake_conf_version_file}"

View file

@ -46,6 +46,8 @@ http://ros.org/wiki/urdf
%install
%cmake_install
# Disable bitness check in version file.
sed -i 's/${CMAKE_SIZEOF_VOID_P}//' %{buildroot}%{_datadir}/%{realname}/cmake/%{realname}-config-version.cmake
%files devel
%license LICENSE