mirror of
https://github.com/badaix/snapcast.git
synced 2025-04-29 10:17:16 +02:00
18 lines
413 B
CMake
18 lines
413 B
CMake
include(CheckCXXSourceCompiles)
|
|
|
|
macro (CHECK_CXX11_STRING_SUPPORT _RESULT)
|
|
set(CMAKE_REQUIRED_DEFINITIONS -std=c++0x)
|
|
set(_CHECK_CXX11_STRING_SUPPORT_SOURCE_CODE "
|
|
#include <string>
|
|
int main()
|
|
{
|
|
std::to_string(1);
|
|
std::stoul(\"1\");
|
|
std::stoi(\"1\");
|
|
std::stod(\"1\");
|
|
return 0;
|
|
}
|
|
")
|
|
|
|
CHECK_CXX_SOURCE_COMPILES("${_CHECK_CXX11_STRING_SUPPORT_SOURCE_CODE}" ${_RESULT})
|
|
endmacro ()
|