Download cmake/AppendOptionIfAvailable.cmake from camenduru/thrust: direct link, hf CLI and curl.
- Browser
- Download file 267 Bytes
-
https://huggingface.co/camenduru/thrust/resolve/main/cmake/AppendOptionIfAvailable.cmake
- Command line
-
hf download hf://camenduru/thrust/cmake/AppendOptionIfAvailable.cmake
-
curl -L -o AppendOptionIfAvailable.cmake https://huggingface.co/camenduru/thrust/resolve/main/cmake/AppendOptionIfAvailable.cmake
267 Bytes
| include_guard(GLOBAL) | |
| include(CheckCXXCompilerFlag) | |
| macro (APPEND_OPTION_IF_AVAILABLE _FLAG _LIST) | |
| string(MAKE_C_IDENTIFIER "CXX_FLAG_${_FLAG}" _VAR) | |
| check_cxx_compiler_flag(${_FLAG} ${_VAR}) | |
| if (${${_VAR}}) | |
| list(APPEND ${_LIST} ${_FLAG}) | |
| endif () | |
| endmacro () | |