summaryrefslogtreecommitdiffstats
path: root/Source/kwsys/CMakeLists.txt
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2014-03-04 15:19:33 (GMT)
committerBrad King <brad.king@kitware.com>2014-03-04 15:19:33 (GMT)
commit7db95df39d8c191f3de92f4d60a0e4106700dda5 (patch)
tree2ad8cf29089fb986eb82a397e4ed87642a06c835 /Source/kwsys/CMakeLists.txt
parent74b982ce734dd55a4155ba8ba0462fef894d6ec0 (diff)
parentf096786d5428505f8313f6b01f4631f5a34b27a2 (diff)
downloadCMake-7db95df39d8c191f3de92f4d60a0e4106700dda5.zip
CMake-7db95df39d8c191f3de92f4d60a0e4106700dda5.tar.gz
CMake-7db95df39d8c191f3de92f4d60a0e4106700dda5.tar.bz2
Merge branch 'upstream-kwsys' into update-kwsys
Diffstat (limited to 'Source/kwsys/CMakeLists.txt')
-rw-r--r--Source/kwsys/CMakeLists.txt6
1 files changed, 6 insertions, 0 deletions
diff --git a/Source/kwsys/CMakeLists.txt b/Source/kwsys/CMakeLists.txt
index 24ea518..3ad5c2e 100644
--- a/Source/kwsys/CMakeLists.txt
+++ b/Source/kwsys/CMakeLists.txt
@@ -685,6 +685,7 @@ IF(KWSYS_USE_SystemInformation)
# usually it's in libc but on FreeBSD
# it's in libexecinfo
FIND_LIBRARY(EXECINFO_LIB "execinfo")
+ MARK_AS_ADVANCED(EXECINFO_LIB)
IF (NOT EXECINFO_LIB)
SET(EXECINFO_LIB "")
ENDIF()
@@ -1076,6 +1077,11 @@ IF(MSVC OR (WIN32 AND "${CMAKE_C_COMPILER_ID}" MATCHES "^(Intel)$"))
)
ENDIF()
+IF(WIN32)
+ # Help enforce the use of wide Windows apis.
+ ADD_DEFINITIONS(-DUNICODE -D_UNICODE)
+ENDIF()
+
IF(KWSYS_USE_String)
# Activate code in "String.c". See the comment in the source.
SET_SOURCE_FILES_PROPERTIES(String.c PROPERTIES