mirror of
https://github.com/taglib/taglib.git
synced 2025-07-18 13:04:18 -04:00
cmake: use BUILD_SHARED_LIBS instead of ENABLE_STATIC to drive the shared object build
In case ENABLE_STATIC is still set on the CMake command line, this change will makes CMake bail out becaus e this option is no longer supported. This patch makes taglib more compliant with the distro package framework that uses the standards CMake options. Signed-off-by: Samuel Martin <s.martin49@gmail.com>
This commit is contained in:
@ -7,9 +7,9 @@ INCLUDE_DIRECTORIES( ${CMAKE_CURRENT_SOURCE_DIR}/../taglib
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/../taglib/mpeg/id3v2
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/../bindings/c/ )
|
||||
|
||||
if(ENABLE_STATIC)
|
||||
if(NOT BUILD_SHARED_LIBS)
|
||||
add_definitions(-DTAGLIB_STATIC)
|
||||
endif(ENABLE_STATIC)
|
||||
endif()
|
||||
|
||||
########### next target ###############
|
||||
|
||||
|
Reference in New Issue
Block a user