bdbcat / oesenc_pi

GNU General Public License v2.0
10 stars 17 forks source link

CMake patch for OpenSUSE 15.x #106

Open dominig opened 3 years ago

dominig commented 3 years ago

due to a change in OpenSUSE release the cmake does not detect correctly the distro and mess up the lib dir install. See here my simple patch which uses the firewall config (always present) to detect the disro. The trick is used in many other plugin.

diff --git a/cmake/PluginInstall.cmake b/cmake/PluginInstall.cmake index efc5ee0..ad6ba71 100644 --- a/cmake/PluginInstall.cmake +++ b/cmake/PluginInstall.cmake @@ -92,7 +92,7 @@ IF (NOT WIN32) SET (LIB_INSTALL_DIR "lib") ENDIF (CMAKE_SIZEOF_VOID_P MATCHES "8") ENDIF (EXISTS /etc/redhat-release)