Closed kthr closed 8 years ago
Set the flag Mathematica_USE_LIBCXX_LIBRARIES
to OFF
before invoking find_package
to force using of the standard MathLink framework linked with libstdc++.
set (Mathematica_USE_LIBCXX_LIBRARIES OFF)
find_package(Mathematica)
Cool,
tanke you very much. Wasn’t aware of it. Anyway great tool you implemented there.
Best, Konstantin
On 26 Nov 2015, at 13:27, Sascha Kratky notifications@github.com wrote:
Set the flag Mathematica_USE_LIBCXX_LIBRARIES to OFF before invoking find_package to force using of the standard MathLink framework linked with libstdc++.
set (Mathematica_USE_LIBCXX_LIBRARIES OFF) find_package(Mathematica) — Reply to this email directly or view it on GitHub https://github.com/sakra/FindMathematica/issues/2#issuecomment-159900501.
When using ${Mathematica_MathLink_LIBRARIES} cmake selects the following mathlink library /Applications/Mathematica.app/Contents/SystemFiles/Links/MathLink/DeveloperKit/MacOSX-x86-64/CompilerAdditions/AlternativeLibraries/mathlink.framework/mathlink in Mathematica 10.3. Unfortunately this library is linked against a non existing library /Volumes/Jenkins/workspace/MathLink.MacOSX-x86-64.release/scratch/CMake.build/lib/mathlink-libc++.framework/Versions/4.25/mathlink-libc++, which subsequently leads to a error when using the compiled executable. A solution could be to use the library under /Applications/Mathematica.app//Contents/Frameworks/mathlink.framework/mathlink.