diff options
author | Michele Calgaro <michele.calgaro@yahoo.it> | 2022-08-05 23:27:30 +0900 |
---|---|---|
committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2022-08-05 23:27:30 +0900 |
commit | 509cd0aa505df0a93702608575b72f07a97c0139 (patch) | |
tree | cda134364734ce39751fd780a97c1f8b04ddd598 /ConfigureChecks.cmake | |
parent | 430373ae38565e0d7f62b8fca0cbad73de73ec7f (diff) | |
download | universal-indent-gui-tqt-509cd0aa505df0a93702608575b72f07a97c0139.tar.gz universal-indent-gui-tqt-509cd0aa505df0a93702608575b72f07a97c0139.zip |
Formatted and fixed TCLAP headers
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'ConfigureChecks.cmake')
-rw-r--r-- | ConfigureChecks.cmake | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/ConfigureChecks.cmake b/ConfigureChecks.cmake index 031be3c..0f733c0 100644 --- a/ConfigureChecks.cmake +++ b/ConfigureChecks.cmake @@ -23,3 +23,34 @@ tde_setup_largefiles( ) if( WITH_GCC_VISIBILITY ) tde_setup_gcc_visibility( ) endif( WITH_GCC_VISIBILITY ) + + +##### check for stream support + +check_cxx_source_compiles( + " + #include <sstream> + int main() + { + std::istringstream sstream; + return 0; + } + " + HAVE_SSTREAM +) + +check_cxx_source_compiles( + " + #include <strstream> + int main() + { + std::istrstream strstream; + return 0; + } + " + HAVE_STRSTREAM +) + +if( NOT HAVE_SSTREAM AND NOT HAVE_STRSTREAM ) + message(FATAL_ERROR "\nsstream or strstream support is required, but not found on your system." ) +endif( ) |