Skip to content

Commit

Permalink
Merge pull request #972 from ToKiNoBug/feature/control-install
Browse files Browse the repository at this point in the history
Add an option to skip installtion
  • Loading branch information
JohanMabille authored Nov 29, 2023
2 parents a44922d + 127872f commit 69a23ab
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -44,3 +44,6 @@ docs/build/
# VSCode / clangd IntelliSense
.vscode/
.cache/

# CLion / IDEA
.idea/
5 changes: 5 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,11 @@ endif()
# Installation
# ============

OPTION(XSIMD_SKIP_INSTALL "Skip installation or not. By default it is OFF" OFF)
if(${XSIMD_SKIP_INSTALL})
return() # skip installation
endif ()

set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_CURRENT_SOURCE_DIR}/cmake")
include(JoinPaths)
include(GNUInstallDirs)
Expand Down

0 comments on commit 69a23ab

Please sign in to comment.