PageRenderTime 91ms CodeModel.GetById 50ms app.highlight 1ms RepoModel.GetById 39ms app.codeStats 1ms

/CMakeModules/CheckTagLibFileName.cmake

http://github.com/tomahawk-player/tomahawk
CMake | 15 lines | 14 code | 0 blank | 1 comment | 0 complexity | a2b82e150c949d1c337c431e10a801b2 MD5 | raw file
 1# taglib changed filenames to be a char/wchar struct on some platforms, need to check for it
 2macro (CHECK_TAGLIB_FILENAME TAGLIB_FILENAME_COMPLEX)
 3	include (CheckCXXSourceCompiles)
 4	set (CMAKE_REQUIRED_FLAGS ${TAGLIB_CFLAGS})
 5	set (CMAKE_REQUIRED_INCLUDES ${TAGLIB_INCLUDES})
 6	set (CMAKE_REQUIRED_LIBRARIES ${TAGLIB_LIBRARIES})
 7	check_cxx_source_compiles(
 8	"#include <tfile.h>
 9	int main()
10	{
11		TagLib::FileName fileName1(\"char\");
12		TagLib::FileName fileName2(L\"wchar\");
13		return 0;
14	}" ${TAGLIB_FILENAME_COMPLEX})
15endmacro (CHECK_TAGLIB_FILENAME)