Merge "[569144] Fix FORTE_LINKED_STRINGDICT definition" into develop
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 69e4c9a..00f2e1a 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -148,6 +148,12 @@
   unset(LUAJIT_MATH_LIBRARY CACHE)

 endif(NOT ("${FORTE_USE_LUATYPES}" STREQUAL "None"))

 

+#######################################################################################
+# Early definition of option how to generate stringlist for every source file
+#######################################################################################
+SET(FORTE_LINKED_STRINGDICT ON CACHE BOOL "FORTE will resolve references to the stringdict at link-stage and not compile-stage. This will reduce compiletime if the stringdict changes.")
+mark_as_advanced(FORTE_LINKED_STRINGDICT)
+
 #######################################################################################

 # Add subdirectories

 #######################################################################################

@@ -269,12 +275,9 @@
 ENDFOREACH(FBLIB_FILE)

 LIST(REMOVE_DUPLICATES SOURCE_FILES)

 

-#######################################################################################

-# Generate stringlist for every source file

-#######################################################################################

-SET(FORTE_LINKED_STRINGDICT ON CACHE BOOL "FORTE will resolve references to the stringdict at link-stage and not compile-stage. This will reduce compiletime if the stringdict changes.")

-mark_as_advanced(FORTE_LINKED_STRINGDICT)

-

+#######################################################################################
+# Generate stringlist for every source file
+#######################################################################################
 SET(FORTE_MODIFY_SOURCES_ON_MISSING_GENERATED_INCLUDES ON CACHE BOOL "FORTE change the source-files if includes for the generated includes are missing.")

 mark_as_advanced(FORTE_MODIFY_SOURCES_ON_MISSING_GENERATED_INCLUDES)