set(DOLFIN_LIBRARY_PROPERTIES ${DOLFIN_LIBRARY_PROPERTIES}
VERSION ${DOLFIN_LIBRARY_VERSION}
SOVERSION ${DOLFIN_VERSION_MAJOR}.${DOLFIN_VERSION_MINOR}
+ OUTPUT_NAME "dolfin${LIB_NAME_EXT}"
)
endif()
set(DOLFIN_3RD_PARTY_INCLUDE_DIRS "@DOLFIN_DEP_INCLUDE_DIRECTORIES@;@DOLFIN_DEP_SYSTEM_INCLUDE_DIRECTORIES@")
# DOLFIN library
-set(DOLFIN_LIBRARIES dolfin)
+set(DOLFIN_LIBRARIES dolfin${DOLFIN_LIB_NAME_EXT})
# Version
set(DOLFIN_VERSION_MAJOR "@DOLFIN_VERSION_MAJOR@")
Version: @DOLFIN_VERSION@
Requires: @PKG_REQUIRES@
Conflicts:
-Libs: @PKG_LINKFLAGS@ -L${libdir} -ldolfin
+Libs: @PKG_LINKFLAGS@ -L${libdir} -ldolfin@LIB_NAME_EXT@
Cflags: @PKG_CXXFLAGS@ -DDOLFIN_VERSION=\"@DOLFIN_VERSION@\" ${definitions} -I${includedir} @PKG_INCLUDES@
get_target_property(BOOST_INCLUDE_DIR Boost::boost INTERFACE_INCLUDE_DIRECTORIES)
# Configure and install pkg-config file
-configure_file(${DOLFIN_CMAKE_DIR}/templates/dolfin.pc.in ${CMAKE_BINARY_DIR}/dolfin.pc @ONLY)
-install(FILES ${CMAKE_BINARY_DIR}/dolfin.pc
+configure_file(${DOLFIN_CMAKE_DIR}/templates/dolfin.pc.in ${CMAKE_BINARY_DIR}/dolfin${LIB_NAME_EXT}.pc @ONLY)
+install(FILES ${CMAKE_BINARY_DIR}/dolfin${LIB_NAME_EXT}.pc
DESTINATION ${DOLFIN_PKGCONFIG_DIR}
COMPONENT Development
)
import hashlib
import dijitso
import dolfin.cpp as cpp
+import dolfin.la as la
from dolfin.cpp import MPI
from functools import wraps
from dolfin.cpp.parameter import parameters
# Get DOLFIN pkg-config data
-if pkgconfig.exists("dolfin"):
+if la.la_index_dtype()==la.int64 and pkgconfig.exists("dolfin64"):
+ dolfin_pc = pkgconfig.parse("dolfin64")
+elif pkgconfig.exists("dolfin"):
dolfin_pc = pkgconfig.parse("dolfin")
else:
raise RuntimeError("Could not find DOLFIN pkg-config file. Please make sure appropriate paths are set.")