File: CheckTagLibFileName.cmake

package info (click to toggle)
amarok 3.3.2-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 112,344 kB
  • sloc: cpp: 195,053; xml: 4,329; ansic: 2,634; javascript: 673; ruby: 528; python: 507; sh: 252; makefile: 12
file content (15 lines) | stat: -rw-r--r-- 551 bytes parent folder | download | duplicates (13)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# taglib changed filenames to be a char/wchar struct on some platforms, need to check for it
macro (CHECK_TAGLIB_FILENAME TAGLIB_FILENAME_COMPLEX)
	include (CheckCXXSourceCompiles)
	set (CMAKE_REQUIRED_FLAGS ${TAGLIB_CFLAGS})
	set (CMAKE_REQUIRED_INCLUDES ${TAGLIB_INCLUDES})
	set (CMAKE_REQUIRED_LIBRARIES ${TAGLIB_LIBRARIES})
	check_cxx_source_compiles(
	"#include <tfile.h>
	int main()
	{
		TagLib::FileName fileName1(\"char\");
		TagLib::FileName fileName2(L\"wchar\");
		return 0;
	}" ${TAGLIB_FILENAME_COMPLEX})
endmacro (CHECK_TAGLIB_FILENAME)