From 0aab6d3788b5bbd17d99a9bf618c1dad847af3cc Mon Sep 17 00:00:00 2001
From: Nicolas Pope <nwpope@utu.fi>
Date: Thu, 23 Jul 2020 11:39:27 +0300
Subject: [PATCH] Fix the fixstars build

---
 CMakeLists.txt | 18 +++++++++---------
 1 file changed, 9 insertions(+), 9 deletions(-)

diff --git a/CMakeLists.txt b/CMakeLists.txt
index ffaf22707..6c9561629 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -320,15 +320,6 @@ endif()
 
 endif ()
 
-if (WITH_FIXSTARS)
-	set(HAVE_LIBSGM true)
-	add_subdirectory(lib/libsgm)
-	include_directories(lib/libsgm/include)
-	set_property(TARGET sgm PROPERTY FOLDER "dependencies")
-else()
-	add_library(sgm INTERFACE)
-endif()
-
 # Incase find_package failed, manually look for msgpack
 if (NOT MsgPack_FOUND)
 	check_include_file_cxx("msgpack.hpp" MSGPACK_FOUND)
@@ -441,6 +432,15 @@ set(CMAKE_WINDOWS_EXPORT_ALL_SYMBOLS ON)
 #	add_library(nvpipe INTERFACE)
 #endif()
 
+if (WITH_FIXSTARS)
+	set(HAVE_LIBSGM true)
+	add_subdirectory(lib/libsgm)
+	include_directories(lib/libsgm/include)
+	set_property(TARGET sgm PROPERTY FOLDER "dependencies")
+else()
+	add_library(sgm INTERFACE)
+endif()
+
 
 add_subdirectory(components/common/cpp)
 #add_subdirectory(applications/calibration)
-- 
GitLab