1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-03-14 04:49:43 +01:00

Explicitly enable the usage of CMAKE_REQUIRED_LIBRARIES for check_cxx_source_compiles

This commit is contained in:
Dominik Schmidt 2018-10-30 19:40:12 +01:00
parent 378f8262cf
commit ec2b9d84eb

View File

@ -1,5 +1,7 @@
# taglib changed filenames to be a char/wchar struct on some platforms, need to check for it
macro (CHECK_TAGLIB_FILENAME TAGLIB_FILENAME_COMPLEX)
CMAKE_POLICY(SET CMP0075 NEW)
include (CheckCXXSourceCompiles)
set (CMAKE_REQUIRED_FLAGS ${TAGLIB_CFLAGS})
set (CMAKE_REQUIRED_INCLUDES ${TAGLIB_INCLUDES})