diff options
author | Brad King <brad.king@kitware.com> | 2015-06-04 13:22:53 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2015-06-04 13:22:53 (GMT) |
commit | bccbe281ff7039e145814d1858a45f38bb681173 (patch) | |
tree | 94938b5be6f21e7fa64e54772b371cfe458cb1e7 /Source/kwsys/CMakeLists.txt | |
parent | 0886880e3b8e5510f861b2e573b311c16db9d657 (diff) | |
parent | 6cafd8ed0bc8458ba2c6eb0e792c894cf4f37f90 (diff) | |
download | CMake-bccbe281ff7039e145814d1858a45f38bb681173.zip CMake-bccbe281ff7039e145814d1858a45f38bb681173.tar.gz CMake-bccbe281ff7039e145814d1858a45f38bb681173.tar.bz2 |
Merge branch 'upstream-kwsys' into update-kwsys
Diffstat (limited to 'Source/kwsys/CMakeLists.txt')
-rw-r--r-- | Source/kwsys/CMakeLists.txt | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/Source/kwsys/CMakeLists.txt b/Source/kwsys/CMakeLists.txt index c88e888..7eb678b 100644 --- a/Source/kwsys/CMakeLists.txt +++ b/Source/kwsys/CMakeLists.txt @@ -786,6 +786,15 @@ IF(KWSYS_USE_SystemInformation) SET_PROPERTY(SOURCE SystemInformation.cxx APPEND PROPERTY COMPILE_DEFINITIONS KWSYS_BUILD_SHARED=1) ENDIF() + + IF(UNIX AND NOT CYGWIN) + KWSYS_PLATFORM_CXX_TEST(KWSYS_CXX_HAS_GETLOADAVG + "Checking whether CXX compiler has getloadavg" DIRECT) + IF(KWSYS_CXX_HAS_GETLOADAVG) + SET_PROPERTY(SOURCE SystemInformation.cxx APPEND PROPERTY + COMPILE_DEFINITIONS KWSYS_CXX_HAS_GETLOADAVG=1) + ENDIF() + ENDIF() ENDIF() #----------------------------------------------------------------------------- |