summaryrefslogtreecommitdiffstats
path: root/cmake/Modules/BuildMacros.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'cmake/Modules/BuildMacros.cmake')
-rw-r--r--cmake/Modules/BuildMacros.cmake4
1 files changed, 2 insertions, 2 deletions
diff --git a/cmake/Modules/BuildMacros.cmake b/cmake/Modules/BuildMacros.cmake
index 3e681b425..8125fa7f9 100644
--- a/cmake/Modules/BuildMacros.cmake
+++ b/cmake/Modules/BuildMacros.cmake
@@ -84,9 +84,9 @@ macro(build_library lib)
if(ARG_STATIC)
list(APPEND TARGET_LIBS
- ${lib}
+ ${lib}.static
)
- add_library(${lib} STATIC ${ARG_SOURCES})
+ add_library(${lib}.static STATIC ${ARG_SOURCES})
endif()
if(NOT ARG_COMPONENT)