diff options
author | gregory guy <g-gregory@gmx.fr> | 2019-07-09 14:41:14 +0200 |
---|---|---|
committer | Slávek Banko <slavek.banko@axis.cz> | 2019-07-09 19:14:17 +0200 |
commit | 644ddeda0885e965a829267f29e6138afed3e1fd (patch) | |
tree | b097bb6bae027b85989080797455d4e5a9480bad /ConfigureChecks.cmake | |
parent | 55eb084c63b5bf3d6803aabd0f68178c29a630df (diff) | |
download | tdeedu-644ddeda0885e965a829267f29e6138afed3e1fd.tar.gz tdeedu-644ddeda0885e965a829267f29e6138afed3e1fd.zip |
add missing definition:
- HAVE_STDINT_H (needed for kiten)
- TIMEZONE_IS_INT (needed for kstars)
Signed-off-by: gregory guy <g-gregory@gmx.fr>
Diffstat (limited to 'ConfigureChecks.cmake')
-rw-r--r-- | ConfigureChecks.cmake | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/ConfigureChecks.cmake b/ConfigureChecks.cmake index 62b6a5ee..6cbee868 100644 --- a/ConfigureChecks.cmake +++ b/ConfigureChecks.cmake @@ -81,3 +81,22 @@ if( BUILD_KIG OR BUILD_KBRUCH ) endif( NOT Boost_FOUND ) endif( BUILD_KIG OR BUILD_KBRUCH ) + + +##### check for headers + +check_include_file( stdint.h HAVE_STDINT_H ) + + +##### check for TIMEZONE_IS_INT + +check_cxx_source_compiles(" +#include <time.h> +int main() +{ + daylight = 0; + timezone = 0; + return 0; +}" +TIMEZONE_IS_INT) + |