Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CMake patch for OpenSUSE 15.x #106

Open
dominig opened this issue Feb 25, 2021 · 0 comments
Open

CMake patch for OpenSUSE 15.x #106

dominig opened this issue Feb 25, 2021 · 0 comments

Comments

@dominig
Copy link
Contributor

dominig commented Feb 25, 2021

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)

  • IF (EXISTS /etc/suse-release OR EXISTS /etc/SuSE-release)
  • IF (EXISTS /etc/suse-release OR EXISTS /etc/SuSE-release OR EXISTS /etc/sysconfig/SuSEfirewall2.d)
    SET (PACKAGE_FORMAT "RPM")

    SET (PACKAGE_DEPS "libwx_baseu-2_8-0-wxcontainer MesaGLw libbz2-1 portaudio")

    IF (CMAKE_SIZEOF_VOID_P MATCHES "8")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant