From daac77e34936b8e90fb5a7304adb0f1f1c7b5aaf Mon Sep 17 00:00:00 2001 From: Jim Edwards Date: Thu, 6 Jun 2019 08:45:37 -0600 Subject: [PATCH] redo cmake change --- CMakeLists.txt | 2 -- cmake_config.h.in | 2 ++ 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 907107d66a0..79f997a8b7c 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -57,8 +57,6 @@ else() set(USE_MPI_SERIAL 0) endif() -#Set in config.h to solve intel 19 strnlen warning issue -set(_GNU_SOURCE, 1) #============================================================================== # PREPEND TO CMAKE MODULE PATH #============================================================================== diff --git a/cmake_config.h.in b/cmake_config.h.in index 8a94219163d..cfd26d77601 100644 --- a/cmake_config.h.in +++ b/cmake_config.h.in @@ -5,6 +5,8 @@ */ #ifndef _PIO_CONFIG_ #define _PIO_CONFIG_ +/* Set to avoid warning in intel19 compiler wrt strnlen */ +#define _GNU_SOURCE /** The major part of the version number. */ #define PIO_VERSION_MAJOR @VERSION_MAJOR@