summaryrefslogtreecommitdiffhomepage
path: root/cmake/opentrack-install.cmake
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2018-04-28 17:15:08 +0200
committerStanislaw Halik <sthalik@misaki.pl>2018-04-28 21:27:35 +0200
commitcbc7123b254830e8a2c8ab281ce8cf735064630f (patch)
tree218c05e469165028bc9087ed31e0c6ed7b97fba3 /cmake/opentrack-install.cmake
parent211ec8b4a813eeb89caef2e22b4b1b0b9ba3d5c4 (diff)
cmake/install: add host system check
Diffstat (limited to 'cmake/opentrack-install.cmake')
-rw-r--r--cmake/opentrack-install.cmake6
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)