Skip to content

Commit f90bc46

Browse files
committed
add STATIC keywords for static library
1 parent b960953 commit f90bc46

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

templates/cmake.mpd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ endif()
114114
target_link_libraries(${PROJECT_TARGET_<%uc(normalize(project_name))%>} ${TARGET_LINK_LIBRARIES_<%uc(normalize(project_name))%>})
115115
<%else%>
116116
<%if(staticname)%>
117-
add_library(${PROJECT_TARGET_<%uc(normalize(project_name))%>} ${SOURCE_FILES_<%uc(normalize(project_name))%>})
117+
add_library(${PROJECT_TARGET_<%uc(normalize(project_name))%>} STATIC ${SOURCE_FILES_<%uc(normalize(project_name))%>})
118118
<%if(staticflags)%>
119119
target_compile_definitions(${PROJECT_TARGET_<%uc(normalize(project_name))%>} PRIVATE <%staticflags%>)
120120
<%endif%>

0 commit comments

Comments
 (0)