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

Variable Mathematica_uuid_LIBRARY is not checked #6

Open
Expander opened this issue May 17, 2020 · 0 comments
Open

Variable Mathematica_uuid_LIBRARY is not checked #6

Expander opened this issue May 17, 2020 · 0 comments

Comments

@Expander
Copy link

Dear @sakra ,

a colleague of mine stumbled upon the issue with missing libuuid again.

He has an Ubuntu machine with Mathematica 12. On this machine the package uuid-dev is not installed, so libuuid is not installed on the system.

When he calls find_package(Mathematica COMPONENTS MathLink), he gets an error message of the form:

CMake Error: The following variables are used in this project, but they are set to NOTFOUND.

Please set them or make sure they are set and tested correctly in the CMake files:
Mathematica_uuid_LIBRARY (ADVANCED)
    linked by target "gm2calc.mx" in directory /home/pathron/software/GM2Calc/src 

If I interpret the error message correctly, it seems that the command

find_library (Mathematica_uuid_LIBRARY uuid)

inside FindMathematica.cmake fails to find libuuid on his system. In this case the variable Mathematica_uuid_LIBRARY is set to NOTFOUND. However, the script just continues without checking if libuuid has been found.

If my interpretation is correct, then a possible fix would be to raise an error if libuuid has not been found.

Many thanks in advance and best regards,
Alexander Voigt

P.S.: This issue has been found when running cmake in https://github.com/GM2Calc/GM2Calc

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