From cbc7123b254830e8a2c8ab281ce8cf735064630f Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Sat, 28 Apr 2018 17:15:08 +0200 Subject: cmake/install: add host system check --- cmake/opentrack-install.cmake | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'cmake') 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) -- cgit v1.2.3