Skip to content

Commit

Permalink
Merge pull request #215 from LukeMouse/master
Browse files Browse the repository at this point in the history
bugfix for shared library
  • Loading branch information
iguessthislldo authored Jul 21, 2024
2 parents 16e9c3d + f90bc46 commit 611e388
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions templates/cmake.mpd
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ endif()
<%endif%>
<%else%>
<%if(sharedname)%>
add_library(${PROJECT_TARGET_<%uc(normalize(project_name))%>} ${SOURCE_FILES_<%uc(normalize(project_name))%>})
add_library(${PROJECT_TARGET_<%uc(normalize(project_name))%>} SHARED ${SOURCE_FILES_<%uc(normalize(project_name))%>})
<%if(dynamicflags)%>
if(BUILD_SHARED_LIBS)
target_compile_definitions(${PROJECT_TARGET_<%uc(normalize(project_name))%>} PRIVATE <%dynamicflags%>)
Expand All @@ -114,7 +114,7 @@ endif()
target_link_libraries(${PROJECT_TARGET_<%uc(normalize(project_name))%>} ${TARGET_LINK_LIBRARIES_<%uc(normalize(project_name))%>})
<%else%>
<%if(staticname)%>
add_library(${PROJECT_TARGET_<%uc(normalize(project_name))%>} ${SOURCE_FILES_<%uc(normalize(project_name))%>})
add_library(${PROJECT_TARGET_<%uc(normalize(project_name))%>} STATIC ${SOURCE_FILES_<%uc(normalize(project_name))%>})
<%if(staticflags)%>
target_compile_definitions(${PROJECT_TARGET_<%uc(normalize(project_name))%>} PRIVATE <%staticflags%>)
<%endif%>
Expand Down

0 comments on commit 611e388

Please sign in to comment.