Skip to content

Ignore udev installation when compiling on FreeBSD #222

Description

Description

Hello,

First of all thank you for this tool, it works great.

I do maintain the port on FreeBSD and we dont use udev. Since i have no idea about cmake, i just removed this section that is installing udev files, maybe you have a better solution? So that it is no longer necessary from our side modifying the CMakeLists.txt endlessly.

Thank you in advance!

On which OS does the problem happen?

Linux

Activity

  1. ghost added on Jul 24, 2022
  2. Sapd commented on Jul 24, 2022

    @Sapd
    Owner

    Hello,
    thank you for providing a port!

    According to https://gitlab.kitware.com/cmake/community/-/wikis/doc/tutorials/How-To-Write-Platform-Checks#cmake-system

    A variable FreeBSD exists.
    So we probably just have to change the line

    if(UNIX AND NOT APPLE)

    to

    if(UNIX AND NOT APPLE AND NOT ${CMAKE_HOST_SYSTEM_NAME} MATCHES "FreeBSD") 

    if you could test it (or directly create a PR) we can include it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions