Skip to content
Snippets Groups Projects
Verified Commit eee42d19 authored by Timm Fitschen's avatar Timm Fitschen
Browse files

Fix CMakeLists.txt (BUILD_SHARED_LIBS option)

parent 2e6e09f6
No related branches found
No related tags found
2 merge requests!33Release 0.1,!32fix windows build
Pipeline #15246 failed
This commit is part of merge request !30. Comments created here will be created in the context of that merge request.
......@@ -39,7 +39,7 @@ set(CMAKE_C_STANDARD_REQUIRED ON)
set(CMAKE_CXX_EXTENSIONS OFF)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
option(BUILD_SHARED_LIBRARY "Build using shared libraries" ON)
option(BUILD_SHARED_LIBS "Build using shared libraries" ON)
set(CMAKE_MODULE_PATH "${PROJECT_SOURCE_DIR}/cmake" ${CMAKE_MODULE_PATH})
......@@ -251,9 +251,8 @@ function(add_compiler_flag flag)
endfunction()
option(LINTING "Enable linting with clang-tidy and iwyu when in non-Debug build-type" OFF)
if (clang_tidy AND ("${CMAKE_BUILD_TYPE}" MATCHES "Debug" OR LINTING))
if ("${CMAKE_BUILD_TYPE}" MATCHES "Debug" OR LINTING)
set(_LINTING ON)
endif()
option(SKIP_LINTING "Skip linting even when in Debug build-type" OFF)
......@@ -336,6 +335,8 @@ if (_LINTING)
C_CLANG_TIDY "${_CMAKE_C_CLANG_TIDY};${_CMAKE_C_CLANG_TIDY_CHECKS}"
)
endif()
else()
message(STATUS "HEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEERE 5")
endif()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment