Browse Source

Update CMakeLists.txt

Skip adding properties to precompiled libs
marauder2k7 3 months ago
parent
commit
e55247e015
1 changed files with 4 additions and 0 deletions
  1. 4 0
      Engine/source/CMakeLists.txt

+ 4 - 0
Engine/source/CMakeLists.txt

@@ -497,6 +497,10 @@ endif()
 
 
 set_property(GLOBAL PROPERTY USE_FOLDERS ON)
 set_property(GLOBAL PROPERTY USE_FOLDERS ON)
 foreach (TORQUE_LIBRARY ${TORQUE_LINK_LIBRARIES})
 foreach (TORQUE_LIBRARY ${TORQUE_LINK_LIBRARIES})
+  # Skip if it's a raw library file instead of a target
+  if(TORQUE_LIBRARY MATCHES "\\.(lib|a|so|dylib|dll)$")
+    continue()
+  endif()
   set_target_properties(${TORQUE_LIBRARY} PROPERTIES
   set_target_properties(${TORQUE_LIBRARY} PROPERTIES
   FOLDER "Libraries")
   FOLDER "Libraries")
   # remove warnings from 3rd parties.
   # remove warnings from 3rd parties.