diff options
| author | manuel <manuel@mausz.at> | 2019-04-29 12:22:05 +0200 |
|---|---|---|
| committer | manuel <manuel@mausz.at> | 2019-04-29 12:22:05 +0200 |
| commit | e317daf081a1048904fdf0b548946fa3ba6593a7 (patch) | |
| tree | 285a58fe8c6b4a95c9a6020afbe7bcc9cb913ea7 /cmake/modules/FindCXX11.cmake | |
| parent | 483c0b88bfc1b798396c31a4dd2f5239399ce59e (diff) | |
| download | kodi-pvr-build-e317daf081a1048904fdf0b548946fa3ba6593a7.tar.gz kodi-pvr-build-e317daf081a1048904fdf0b548946fa3ba6593a7.tar.bz2 kodi-pvr-build-e317daf081a1048904fdf0b548946fa3ba6593a7.zip | |
sync with upstream
Diffstat (limited to 'cmake/modules/FindCXX11.cmake')
| -rw-r--r-- | cmake/modules/FindCXX11.cmake | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/cmake/modules/FindCXX11.cmake b/cmake/modules/FindCXX11.cmake deleted file mode 100644 index c0b9a52..0000000 --- a/cmake/modules/FindCXX11.cmake +++ /dev/null | |||
| @@ -1,18 +0,0 @@ | |||
| 1 | include(TestCXXAcceptsFlag) | ||
| 2 | |||
| 3 | # try to use compiler flag -std=c++11 | ||
| 4 | check_cxx_accepts_flag("-std=c++11" CXX_FLAG_CXX11) | ||
| 5 | if(CXX_FLAG_CXX11) | ||
| 6 | add_options (CXX ALL_BUILDS "-std=c++11") | ||
| 7 | set(CXX_STD11_FLAGS "-std=c++11") | ||
| 8 | else() | ||
| 9 | # try to use compiler flag -std=c++0x for older compilers | ||
| 10 | check_cxx_accepts_flag("-std=c++0x" CXX_FLAG_CXX0X) | ||
| 11 | if(CXX_FLAG_CXX0X) | ||
| 12 | add_options (CXX ALL_BUILDS "-std=c++0x") | ||
| 13 | set(CXX_STD11_FLAGS "-std=c++0x") | ||
| 14 | endif() | ||
| 15 | endif() | ||
| 16 | |||
| 17 | include(FindPackageHandleStandardArgs) | ||
| 18 | find_package_handle_standard_args(CXX11 DEFAULT_MSG CXX_STD11_FLAGS) | ||
