Find Boost properly.

check_cxx_source_compiles() depends on the Visual Studio settings.
This commit is contained in:
Tsuda Kageyu
2016-02-13 15:38:35 +09:00
parent 73662037eb
commit ab2267f9aa
2 changed files with 22 additions and 18 deletions

View File

@ -32,6 +32,10 @@ elseif(HAVE_ZLIB_SOURCE)
include_directories(${ZLIB_SOURCE})
endif()
if(HAVE_BOOST_ATOMIC OR HAVE_BOOST_BYTESWAP)
include_directories(${Boost_INCLUDE_DIR})
endif()
set(tag_HDRS
tag.h
fileref.h
@ -343,6 +347,10 @@ if(ZLIB_FOUND)
target_link_libraries(tag ${ZLIB_LIBRARIES})
endif()
if(HAVE_BOOST_ATOMIC)
target_link_libraries(tag ${Boost_ATOMIC_LIBRARY})
endif()
set_target_properties(tag PROPERTIES
VERSION ${TAGLIB_SOVERSION_MAJOR}.${TAGLIB_SOVERSION_MINOR}.${TAGLIB_SOVERSION_PATCH}
SOVERSION ${TAGLIB_SOVERSION_MAJOR}