summaryrefslogtreecommitdiffstats
path: root/Source/kwsys/CMakeLists.txt
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2013-01-11 16:34:59 (GMT)
committerBrad King <brad.king@kitware.com>2013-01-11 16:34:59 (GMT)
commit6f57a9041e8a609ca45a7b26af5118f492b83ac2 (patch)
treef8b86c47d1e418891547012a1b85465e57d69073 /Source/kwsys/CMakeLists.txt
parentc0c8ef85fc8d65a47abfd293031bcde91e7ee930 (diff)
parent6318834b95fb4e666f9c135a883bb953579c3c8a (diff)
downloadCMake-6f57a9041e8a609ca45a7b26af5118f492b83ac2.zip
CMake-6f57a9041e8a609ca45a7b26af5118f492b83ac2.tar.gz
CMake-6f57a9041e8a609ca45a7b26af5118f492b83ac2.tar.bz2
Merge branch 'upstream-kwsys' into update-kwsys
Diffstat (limited to 'Source/kwsys/CMakeLists.txt')
-rw-r--r--Source/kwsys/CMakeLists.txt7
1 files changed, 7 insertions, 0 deletions
diff --git a/Source/kwsys/CMakeLists.txt b/Source/kwsys/CMakeLists.txt
index 6bfcab0..5df5a74 100644
--- a/Source/kwsys/CMakeLists.txt
+++ b/Source/kwsys/CMakeLists.txt
@@ -603,6 +603,13 @@ IF(KWSYS_USE_SystemInformation)
COMPILE_DEFINITIONS KWSYS_SYS_HAS_MPCTL_H=1)
ENDIF()
ENDIF()
+ IF(CMAKE_SYSTEM MATCHES "BSD")
+ CHECK_INCLUDE_FILES("machine/cpu.h" KWSYS_SYS_HAS_MACHINE_CPU_H)
+ IF(KWSYS_SYS_HAS_MACHINE_CPU_H)
+ SET_PROPERTY(SOURCE SystemInformation.cxx APPEND PROPERTY
+ COMPILE_DEFINITIONS KWSYS_SYS_HAS_MACHINE_CPU_H=1)
+ ENDIF()
+ ENDIF()
IF(KWSYS_LFS_AVAILABLE AND NOT KWSYS_LFS_DISABLE)
SET(KWSYS_PLATFORM_CXX_TEST_DEFINES -DKWSYS_HAS_LFS=1)
ENDIF()