From e55247e01538552d313d2065779ce9752a877c66 Mon Sep 17 00:00:00 2001 From: marauder2k7 Date: Tue, 23 Sep 2025 14:31:15 +0100 Subject: [PATCH] Update CMakeLists.txt Skip adding properties to precompiled libs --- Engine/source/CMakeLists.txt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Engine/source/CMakeLists.txt b/Engine/source/CMakeLists.txt index 34991cce7..9b840b649 100644 --- a/Engine/source/CMakeLists.txt +++ b/Engine/source/CMakeLists.txt @@ -497,6 +497,10 @@ endif() set_property(GLOBAL PROPERTY USE_FOLDERS ON) 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 FOLDER "Libraries") # remove warnings from 3rd parties.