dolfin team mailing list archive
-
dolfin team
-
Mailing list archive
-
Message #19350
Re: [Branch ~dolfin-core/dolfin/main] Rev 5093: Call check_cxx_source_runs directly in CHOLMOD test. Gives more sensible
On Tue, Aug 24, 2010 at 1:48 PM, <noreply@xxxxxxxxxxxxx> wrote:
> ------------------------------------------------------------
> revno: 5093
> committer: Anders Logg <logg@xxxxxxxxx>
> branch nick: dolfin
> timestamp: Tue 2010-08-24 13:42:07 +0200
> message:
> Call check_cxx_source_runs directly in CHOLMOD test. Gives more sensible
> error messages.
The reason I didn't call check_cxx_source_runs directly was because I
had a plan to link with the METIS library if it didn't work with only
the other libraries. I just forgot to add a FIXME for it.
Johannes
> modified:
> cmake/FindCHOLMOD.cmake
>
>
> --
> lp:dolfin
> https://code.launchpad.net/~dolfin-core/dolfin/main
>
> Your team DOLFIN Core Team is subscribed to branch lp:dolfin.
> To unsubscribe from this branch go to https://code.launchpad.net/~dolfin-core/dolfin/main/+edit-subscription
>
> === modified file 'cmake/FindCHOLMOD.cmake'
> --- cmake/FindCHOLMOD.cmake 2010-08-24 08:58:52 +0000
> +++ cmake/FindCHOLMOD.cmake 2010-08-24 11:42:07 +0000
> @@ -74,7 +74,9 @@
> set(CMAKE_REQUIRED_INCLUDES "${CHOLMOD_INCLUDE_DIRS};${AMD_INCLUDE_DIRS}")
> set(CMAKE_REQUIRED_LIBRARIES ${CHOLMOD_LIBRARIES})
>
> - set(cholmod_test_libs_str "
> + # Build and run test program
> + include(CheckCXXSourceRuns)
> + check_cxx_source_runs("
> #include <stdio.h>
> #include <cholmod.h>
>
> @@ -118,9 +120,7 @@
> cholmod_finish(&c);
> return 0;
> }
> -")
> -
> - check_cxx_source_runs(cholmod_test_libs_str CHOLMOD_TEST_RUNS)
> +" CHOLMOD_TEST_RUNS)
>
> endif()
>
>
>
>