[cmake-developers] [PATCH v3 3/7] Use SystemTools::GetEnv and HasEnv functions

Mike Gelfand mikedld at mikedld.com
Wed Jul 6 17:39:06 EDT 2016


On 07/06/2016 10:12 PM, Dāvis Mosāns wrote:
> --- a/Source/kwsys/SystemInformation.cxx
> +++ b/Source/kwsys/SystemInformation.cxx
> @@ -219,6 +219,8 @@ typedef struct rlimit ResourceLimitType;
>  # define USE_CPUID 0
>  #endif
>  
> +#include <cmsys/SystemTools.hxx>
> +
>  #if USE_CPUID
>  
>  #define CPUID_AWARE_COMPILER
IIUC, in kwsys/ subdirectory it should be `#include
KWSYS_HEADER(SystemTools.hxx)` instead, with corresponding `#include
"SystemTools.hxx.in"` inside `#if 0 ... #endif` block.

Regards,
Mike


More information about the cmake-developers mailing list