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

Fire CMake configure fails when MAGMA not available #11

Closed
amccaskey opened this issue Dec 2, 2016 · 3 comments
Closed

Fire CMake configure fails when MAGMA not available #11

amccaskey opened this issue Dec 2, 2016 · 3 comments
Assignees
Labels

Comments

@amccaskey
Copy link
Collaborator

Running CMake 3.6.2 (which is the default now in Fedora 25 when you run dnf install cmake) fails with

-- MAGMA support requested. Searching at MAGMA_ROOT=.
-- Found PkgConfig: /usr/bin/pkg-config (found version "0.29.1") 
-- Checking for one of the modules 'magma;magma_sparse'
CMake Error at /usr/share/cmake/Modules/FindPkgConfig.cmake:646 (message):
  None of the required 'magma;magma_sparse' found
Call Stack (most recent call first):
  cmake/Modules/FindMAGMA.cmake:61 (pkg_search_module)
  solvers/CMakeLists.txt:54 (find_package)

when the user does not have MAGMA installed. Later versions of CMake prefer

if (MAGMA_ROOT) (works for 3.6.2)

instead of

if (NOT MAGMA_ROOT STREQUAL "") (does not work for 3.6.2)
@amccaskey amccaskey added the bug label Dec 2, 2016
@amccaskey amccaskey self-assigned this Dec 2, 2016
@jayjaybillings
Copy link
Owner

Does the former work for versions less than 3.6.2?

@amccaskey
Copy link
Collaborator Author

Former works with 3.4.3 and 2.8.2. Latter fails for 2.8.2 and 3.4.3.

@jayjaybillings
Copy link
Owner

I switched it to the former.

N.B. - I originally implemented it using the former method, but switched to the latter after I encountered some problems. Maybe those problems were symptoms of other things and this will work fine, but it is important to note that it didn't initially work correctly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants