diff options
author | Brad King <brad.king@kitware.com> | 2018-02-01 13:15:44 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2018-02-01 13:15:44 (GMT) |
commit | be46f9fb6e9fc0b33198ccf5396e0188e56940e4 (patch) | |
tree | 10bb92d3e382eb459c619f2320a01b66c9fead62 /Source/kwsys/CMakeLists.txt | |
parent | 5a16e762e21e22e7a212acc7e2bc7bd027d66166 (diff) | |
parent | 854feacc60c5d1dcf53652a764841e1d9d602ac3 (diff) | |
download | CMake-be46f9fb6e9fc0b33198ccf5396e0188e56940e4.zip CMake-be46f9fb6e9fc0b33198ccf5396e0188e56940e4.tar.gz CMake-be46f9fb6e9fc0b33198ccf5396e0188e56940e4.tar.bz2 |
Merge branch 'upstream-KWSys' into update-kwsys
* upstream-KWSys:
KWSys 2018-02-01 (04fcc449)
Diffstat (limited to 'Source/kwsys/CMakeLists.txt')
-rw-r--r-- | Source/kwsys/CMakeLists.txt | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/Source/kwsys/CMakeLists.txt b/Source/kwsys/CMakeLists.txt index 2570e5b..c0154c8 100644 --- a/Source/kwsys/CMakeLists.txt +++ b/Source/kwsys/CMakeLists.txt @@ -496,6 +496,16 @@ IF(KWSYS_USE_SystemTools) KWSYS_CXX_STAT_HAS_ST_MTIM=${KWSYS_CXX_STAT_HAS_ST_MTIM} KWSYS_CXX_STAT_HAS_ST_MTIMESPEC=${KWSYS_CXX_STAT_HAS_ST_MTIMESPEC} ) + IF(NOT WIN32) + IF(KWSYS_STANDALONE) + OPTION(KWSYS_SYSTEMTOOLS_SUPPORT_WINDOWS_SLASHES "If true, Windows paths will be supported on Unix as well" ON) + ENDIF() + IF(KWSYS_SYSTEMTOOLS_SUPPORT_WINDOWS_SLASHES) + SET_PROPERTY(SOURCE SystemTools.cxx testSystemTools.cxx APPEND PROPERTY COMPILE_DEFINITIONS + KWSYS_SYSTEMTOOLS_SUPPORT_WINDOWS_SLASHES + ) + ENDIF() + ENDIF() # Disable getpwnam for static linux builds since it depends on shared glibc GET_PROPERTY(SHARED_LIBS_SUPPORTED GLOBAL PROPERTY TARGET_SUPPORTS_SHARED_LIBS) |