Skip to content

Commit

Permalink
Remove header files from library sources
Browse files Browse the repository at this point in the history
  • Loading branch information
ax487 authored and enzo1982 committed Jan 28, 2023
1 parent 0fd9085 commit f97def1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -301,11 +301,11 @@ set(LIBUTIL_SOURCE_FILES
# Define library targets
#
if(BUILD_SHARED)
add_library(mp4v2 SHARED ${MP4V2_PUBLIC_HEADERS} ${MP4V2_PRIVATE_HEADERS} ${MP4V2_SOURCE_FILES})
add_library(mp4v2 SHARED ${MP4V2_SOURCE_FILES})
target_compile_definitions(mp4v2 PRIVATE MP4V2_EXPORTS)
set_target_properties(mp4v2 PROPERTIES VERSION ${PROJECT_version} SOVERSION ${PROJECT_version_major})
else()
add_library(mp4v2 STATIC ${MP4V2_PUBLIC_HEADERS} ${MP4V2_PRIVATE_HEADERS} ${MP4V2_SOURCE_FILES})
add_library(mp4v2 STATIC ${MP4V2_SOURCE_FILES})
target_compile_definitions(mp4v2 PUBLIC MP4V2_USE_STATIC_LIB)
endif()

Expand Down

0 comments on commit f97def1

Please sign in to comment.