Description: Build the library with -fPIC
 Here we're building a static library. fPIC is needed to be able to link this
 static library into a shared library, which a user of libmesh might want to do
diff --git a/sources/CMakeLists.txt b/sources/CMakeLists.txt
index 1b1519c..80c5f35 100644
--- a/sources/CMakeLists.txt
+++ b/sources/CMakeLists.txt
@@ -20,7 +20,7 @@ install (TARGETS Meshb.7 EXPORT libMeshb-target DESTINATION lib COMPONENT librar
 
 install(DIRECTORY ${CMAKE_Fortran_MODULE_DIRECTORY}/ DESTINATION include)
 
 install (EXPORT libMeshb-target DESTINATION lib/cmake/${PROJECT_NAME})
 export  (PACKAGE libMeshb)
 
-
+target_compile_options(Meshb.7 PRIVATE -fPIC)
