[petsc-users] Petsc CMake conf
Mohammad Mirzadeh
mirzadeh at gmail.com
Fri Apr 13 17:47:08 CDT 2012
Sweet :D -- Thanks Jed.
Just a question though. When I run cmake in the build directory I get:
-- Performing Test MULTIPASS_TEST_1_petsc_works_minimal
-- Performing Test MULTIPASS_TEST_1_petsc_works_minimal - Failed
-- Performing Test MULTIPASS_TEST_2_petsc_works_allincludes
-- Performing Test MULTIPASS_TEST_2_petsc_works_allincludes - Failed
-- Performing Test MULTIPASS_TEST_3_petsc_works_alllibraries
-- Performing Test MULTIPASS_TEST_3_petsc_works_alllibraries - Failed
-- Performing Test MULTIPASS_TEST_4_petsc_works_all
-- Performing Test MULTIPASS_TEST_4_petsc_works_all - Failed
-- PETSc could not be used, maybe the install is broken.
-- PETSc could not be found. Be sure to set PETSC_DIR and PETSC_ARCH.
(missing: PETSC_EXECUTABLE_RUNS)
-- PETSc could not be found. Be sure to set PETSC_DIR and PETSC_ARCH.
(missing: PETSC_EXECUTABLE_RUNS)
But actually I can make and run the binary without any problem! should I
ignore this? I do set PETSC_DIR and PETSC_ARCH in my CMakeLists.txt.
On Fri, Apr 13, 2012 at 3:19 PM, Jed Brown <jedbrown at mcs.anl.gov> wrote:
>
>
> On Fri, Apr 13, 2012 at 17:17, Mohammad Mirzadeh <mirzadeh at gmail.com>wrote:
>
>> Hi,
>>
>> Are there any cmake conf file that I can include in my CMakeLists.txt
>> that would automatically detect include/lib directory for my petsc
>> installation? Right now I'm doing this manually and was wondering if its
>> possibel to automate it.
>>
>
> https://github.com/jedbrown/cmake-modules/blob/master/FindPETSc.cmake
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20120413/c60a9cc5/attachment.htm>
More information about the petsc-users
mailing list