CMake: Implement test for HAVE_IOS_BINARY.

This commit is contained in:
Sam Edwards 2016-12-15 04:08:57 -08:00
parent 2ecb06e48d
commit b326c6e12d
1 changed files with 5 additions and 2 deletions

View File

@ -101,8 +101,11 @@ int main(int argc, char *argv[]) { return 0; }
set(HAVE_IOS_TYPEDEFS 1)
# Define if the C++ iostream library defines ios::binary.
#TODO make test case
#$[cdefine HAVE_IOS_BINARY]
check_cxx_source_compiles("
#include <ios>
std::ios::openmode binary = std::ios::binary;
int main(int argc, char *argv[]) { return 0; }
" HAVE_IOS_BINARY)
# Can we safely call getenv() at static init time?
#TODO make test case? can we make a reliable one?