Skip to content

Commit 69a23ab

Browse files
authored
Merge pull request #972 from ToKiNoBug/feature/control-install
Add an option to skip installtion
2 parents a44922d + 127872f commit 69a23ab

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,3 +44,6 @@ docs/build/
4444
# VSCode / clangd IntelliSense
4545
.vscode/
4646
.cache/
47+
48+
# CLion / IDEA
49+
.idea/

CMakeLists.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,11 @@ endif()
118118
# Installation
119119
# ============
120120

121+
OPTION(XSIMD_SKIP_INSTALL "Skip installation or not. By default it is OFF" OFF)
122+
if(${XSIMD_SKIP_INSTALL})
123+
return() # skip installation
124+
endif ()
125+
121126
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_CURRENT_SOURCE_DIR}/cmake")
122127
include(JoinPaths)
123128
include(GNUInstallDirs)

0 commit comments

Comments
 (0)