From fac600d3dbbb406df7109658238e11775fd7569c Mon Sep 17 00:00:00 2001
From: Thomas Fischer <thomas.fischer@ufz.de>
Date: Mon, 9 May 2016 12:05:10 +0200
Subject: [PATCH] Make InSituLib static; Resolve circular dependency

---
 InSituLib/CMakeLists.txt | 2 +-
 MeshLib/CMakeLists.txt   | 1 +
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/InSituLib/CMakeLists.txt b/InSituLib/CMakeLists.txt
index 0118d290cc4..3ad4bc2b914 100644
--- a/InSituLib/CMakeLists.txt
+++ b/InSituLib/CMakeLists.txt
@@ -1,4 +1,4 @@
-add_library(InSituLib
+add_library(InSituLib STATIC
 	VtkMappedMesh.h
 	VtkMappedMesh.cpp
 	VtkMappedMeshSource.h
diff --git a/MeshLib/CMakeLists.txt b/MeshLib/CMakeLists.txt
index 8362bb183b2..a0cb4cecc52 100644
--- a/MeshLib/CMakeLists.txt
+++ b/MeshLib/CMakeLists.txt
@@ -26,6 +26,7 @@ target_link_libraries(MeshLib
 	BaseLib
 	GeoLib
 	MathLib
+	InSituLib # VtkMappedMeshSource
 	${VTK_LIBRARIES}
 )
 
-- 
GitLab