diff --git a/.gitignore b/.gitignore index 319e6df81..b937d95fb 100644 --- a/.gitignore +++ b/.gitignore @@ -44,3 +44,6 @@ docs/build/ # VSCode / clangd IntelliSense .vscode/ .cache/ + +# CLion / IDEA +.idea/ \ No newline at end of file diff --git a/CMakeLists.txt b/CMakeLists.txt index aa81524d4..58b1e3498 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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)