Skip to content

Commit 127872f

Browse files
committed
Add an option to skip installation
Signed-off-by: ToKiNoBug <[email protected]>
1 parent 7b3982b commit 127872f

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

CMakeLists.txt

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

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

0 commit comments

Comments
 (0)