diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2018-04-28 17:15:08 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2018-04-28 21:27:35 +0200 |
commit | cbc7123b254830e8a2c8ab281ce8cf735064630f (patch) | |
tree | 218c05e469165028bc9087ed31e0c6ed7b97fba3 | |
parent | 211ec8b4a813eeb89caef2e22b4b1b0b9ba3d5c4 (diff) |
cmake/install: add host system check
-rw-r--r-- | cmake/opentrack-install.cmake | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/cmake/opentrack-install.cmake b/cmake/opentrack-install.cmake index 074f6d97..392fb3b2 100644 --- a/cmake/opentrack-install.cmake +++ b/cmake/opentrack-install.cmake @@ -36,8 +36,10 @@ function(install_sources) endfunction() function(cleanup_visual_studio_debug) - otr_escape_string(pfx "${CMAKE_INSTALL_PREFIX}") - install(CODE "file(REMOVE_RECURSE \"${pfx}/.vs\")") + #if(CMAKE_HOST_SYSTEM_NAME STREQUAL "Windows") + otr_escape_string(pfx "${CMAKE_INSTALL_PREFIX}") + install(CODE "file(REMOVE_RECURSE \"${pfx}/.vs\")") + #endif() endfunction() otr_install_dir("${opentrack-doc-pfx}" ${CMAKE_SOURCE_DIR}/3rdparty-notices) |