Thanks to visit codestin.com
Credit goes to github.com

Skip to content

OS_NAME for Mac in CMakeLists.txt #107

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

Open
prabhdatnoor opened this issue May 8, 2025 · 0 comments
Open

OS_NAME for Mac in CMakeLists.txt #107

prabhdatnoor opened this issue May 8, 2025 · 0 comments

Comments

@prabhdatnoor
Copy link

prabhdatnoor commented May 8, 2025

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!

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