[Dune] SuperLUDist can't find parmetis
Aleksejs Fomins
aleksejs.fomins at lspr.ch
Mon Nov 2 16:43:13 CET 2015
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hey Markus,
Thanks for your help. This really helped fix it, but it was not the only thing. When I wrote the FindSuperLUDist routine, I forgot that Metis and ParMetis have to be linked explicitly to SuperLUDist a second time, namely
if(SUPERLUDIST_FOUND)
foreach(_target ${_targets})
target_link_libraries(${_target} ${SUPERLUDIST_LIBRARY} ${PARMETIS_LIBRARY} ${METIS_LIBRARY})
endforeach(_target ${_targets})
set_property(TARGET ${_targets} APPEND PROPERTY INCLUDE_DIRECTORIES "${SUPERLUDIST_INCLUDE_DIRS}")
set_property(TARGET ${_targets} APPEND PROPERTY COMPILE_DEFINITIONS "HAVE_SUPERLU_DIST")
endif(SUPERLUDIST_FOUND)
Hope this helps other people someday too
Best,
Aleksejs
On 02.11.2015 14:11, Markus Blatt wrote:
> On Mon, Nov 02, 2015 at 10:12:45AM +0100, Aleksejs Fomins wrote:
>> I have taken a look at verbose output, and the thing that troubles me is that
>>
>>> -DCMAKE_CXXFLAGS=\"$GXX_WARNING_OPTS $GXX_OPTS $SUPERLU_DIST_INCLUDE_PATH \" \
>>
>> is completely ignored. I do not see any of the flags provided here (e.g. -O0 and -g3) appearing in the compile and link routines. Would you know why? Can you perhaps send over an example opts file that definitely finds the CXX flags so I have a reference?
>
> That is because the variable should be called CMAKE_CXX_FLAGS.
>
> Cheers,
>
> Markus
>
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1
iQIcBAEBAgAGBQJWN4SRAAoJEDkNM7UOEwMZ+nQP/j0zeEG+4mRi/WreK8rhYarP
+gBrIWLcvjhM66biIKxjVUZhhxqrsgGrXZD8sco2AM0zZ8WKHKecXH3HAlNhv2oS
ZE7B+bI0lW2UphZ1ko68tvvfj5HgBllMwQNKj4n2eYouKiX4iNAJzzJgdNRDSB1I
0djenZkuJ8wR21ShvP31Ld2FmJimtbC9vM8R8f27MqxHloZPnAeWu1RbT29XwL4F
uIkgMhkS7vLSze/AtyFyVuR8P6Aq5yMzR7BzTllIej/FoPzTcqoyx+K/lAYMb7NG
AguQxabnJz9KbbTGSSYUZhCdd8XleKKPhytL2sc/Ie6taIcAieVsxW28lLbrB8e9
wDjwr2bZAPJik8nuiHEjcHqxtDkk2u2NB5cgbpbkN+5QV+3uVlgMTSPbmbwBMpi/
WCfaQ1CernLdId2SIW1Oza5AzRnn6jBxf5cBkP5iV7AJTZEqJp59Jle+b89vrsgx
QlOzJ+o6skORCXHzzEIy1Fe/o+40JWVauJS90dn3e1BpqaR/sssyYVoCJjrfTfMZ
XpSXqiEBFMwkH9ffHPpNJNvqq7cH2mPeUTzDumED53ck2iChZeT8EG0nmYhzt0Fy
w8adHfQWnreCStv4JzI/fmKpUrkIVxkxTjTQd8fL8FD4F/j5DLpUvtc8cr+urftL
cG2UZZg3HlR1vwdI8Fxj
=QCfc
-----END PGP SIGNATURE-----
More information about the Dune
mailing list