mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-11 16:44:05 +02:00
Check for std::(tr1::)function support
This commit is contained in:
13
CMakeModules/CheckStdFunctional.cmake
Normal file
13
CMakeModules/CheckStdFunctional.cmake
Normal file
@@ -0,0 +1,13 @@
|
||||
# taglib changed filenames to be a char/wchar struct on some platforms, need to check for it
|
||||
macro (CHECK_STD_FUNCTIONAL CXX_STD_FUNCTIONAL)
|
||||
include (CheckCXXSourceCompiles)
|
||||
check_cxx_source_compiles(
|
||||
"
|
||||
#include <functional>
|
||||
using std::function;
|
||||
int main()
|
||||
{
|
||||
return 0;
|
||||
}" ${CXX_STD_FUNCTIONAL})
|
||||
endmacro()
|
||||
|
13
CMakeModules/CheckStdTr1Functional.cmake
Normal file
13
CMakeModules/CheckStdTr1Functional.cmake
Normal file
@@ -0,0 +1,13 @@
|
||||
# taglib changed filenames to be a char/wchar struct on some platforms, need to check for it
|
||||
macro (CHECK_STD_TR1_FUNCTIONAL CXX_STD_TR1_FUNCTIONAL)
|
||||
include (CheckCXXSourceCompiles)
|
||||
check_cxx_source_compiles(
|
||||
"
|
||||
#include <tr1/functional>
|
||||
using std::tr1::function;
|
||||
int main()
|
||||
{
|
||||
return 0;
|
||||
}" ${CXX_STD_TR1_FUNCTIONAL})
|
||||
endmacro()
|
||||
|
Reference in New Issue
Block a user