mirror of
https://github.com/taglib/taglib.git
synced 2025-11-17 07:02:53 -05:00
Fixed shlwapi.h and shlwapi.lib detection for MSVC
This commit is contained in:
@ -30,7 +30,7 @@ if(ZLIB_FOUND)
|
||||
include_directories(${ZLIB_INCLUDE_DIR})
|
||||
endif()
|
||||
|
||||
if(SHLWAPI_FOUND)
|
||||
if(NOT MSVC AND SHLWAPI_FOUND)
|
||||
include_directories(${SHLWAPI_INCLUDE_DIR})
|
||||
endif()
|
||||
|
||||
@ -315,8 +315,12 @@ if(ZLIB_FOUND)
|
||||
target_link_libraries(tag ${ZLIB_LIBRARIES})
|
||||
endif()
|
||||
|
||||
if(SHLWAPI_FOUND)
|
||||
target_link_libraries(tag ${SHLWAPI_LIBRARIES})
|
||||
if(MSVC)
|
||||
target_link_libraries(tag shlwapi.lib)
|
||||
else()
|
||||
if(SHLWAPI_FOUND)
|
||||
target_link_libraries(tag ${SHLWAPI_LIBRARIES})
|
||||
endif()
|
||||
endif()
|
||||
|
||||
set_target_properties(tag PROPERTIES
|
||||
|
||||
Reference in New Issue
Block a user