Page 1 of 1

CMake failed to configure

Posted: Sat Dec 14, 2019 11:03 am
by jiapei100
As follow:

Code: Select all

CMake Error at CMakeLists.txt:299 (if):
   if given arguments:

     "STREQUAL" ""

   Unknown arguments specified

Re: CMake failed to configure

Posted: Fri May 22, 2020 6:48 am
by kerry87
Did you solve the issue? can you share your makefile and how are you calling it? thanks :)

Re: CMake failed to configure

Posted: Wed May 27, 2020 9:17 pm
by mgates3
The easiest fix is to define $MKLROOT in your environment, so MAGMA knows where to find MKL. E.g.,

Code: Select all

    source /opt/intel/bin/compilervars.csh intel64   # sets MKLROOT
    echo $MKLROOT
    /opt/intel/compilers_and_libraries_2020.1.216/mac/mkl

    # in magma directory
    mkdir build
    cd build
    rm *    # clean out stale cache
    cmake ..
We will update the CMake script to deal with their weird, bug-prone syntax.

Mark

Re: CMake failed to configure

Posted: Fri May 29, 2020 8:35 am
by kerry87
Why not putting the following commands as part of the makefile rules?

Code: Select all

    cd build
    rm *    # clean out stale cache
    cmake ..