Skip to content

OS_NAME for Mac in CMakeLists.txt #107

Description

@prabhdatnoor

On Mac, I kept getting error "Could not determine JNI include directories" when trying to do the custom setup.

The following fixed it for me:

I think the issue is on line 74 of CMakeLists.txt:

if(OS_NAME MATCHES "^Linux" OR OS_NAME STREQUAL "Mac")

"Mac" should be "Darwin".

I also tested with message(STATUS "OS_NAME detected as: ${OS_NAME}") and it prints Darwin.

I am on a 2020 Intel Mac.

Please let me know if anyone has encountered this error, and if it this a correct fix. Thank you!

Activity

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

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions