From a4494550854301c7e6ff41d4dd5d76de4e4e8ef4 Mon Sep 17 00:00:00 2001 From: Daniel Tipping Date: Mon, 14 Jan 2019 13:22:11 +0000 Subject: [PATCH] Make find_linux_utils a windows-only check --- CMakeLists.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index adf53793a..2b08f1a81 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -58,7 +58,9 @@ check_c_source_compiles( " ECCODES_HAVE_C_INLINE ) include(eccodes_test_endiness) -include(eccodes_find_linux_utils) +if( EC_OS_NAME MATCHES "windows" ) + include(eccodes_find_linux_utils) +endif() ecbuild_debug("ECCODES_BIG_ENDIAN=${ECCODES_BIG_ENDIAN}") ecbuild_debug("ECCODES_LITTLE_ENDIAN=${ECCODES_LITTLE_ENDIAN}")