jedbrown/cmake-modules

Unexpected configuration

Closed this issue · 1 comments

floli commented

Hello,
cmake tells me

-- petsc_lib_dir /home/florian/software/petsc/arch-linux2-c-debug/lib
-- Recognized PETSc install with single library for all packages
-- 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 - Success
-- PETSc requires extra include paths, but links correctly with only interface libraries.  This is an unexpected configuration (but it seems to work fine).
-- Found PETSc: /home/florian/software/petsc/include;/home/florian/software/petsc/arch-linux2-c-debug/include;/opt/mpich/include (found suitable version "3.8.4", minimum required is "3.6")

I use it like

find_package(PETSc 3.6 REQUIRED)
include_directories(${PETSC_INCLUDES})

add_library(mylib ${sourcesAllNoMain})
target_link_libraries(mylib PUBLIC ${PETSC_LIBRARIES})

Is there something I should or can do about that? I compiled petsc from source using the git maint branch.

Best Thanks!