Skip to content

Commit

Permalink
fix cmake
Browse files Browse the repository at this point in the history
  • Loading branch information
akuzm committed Jan 10, 2025
1 parent 192ec2c commit 37b4cca
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 8 deletions.
5 changes: 2 additions & 3 deletions tsl/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,8 @@ if(CC_PCLMUL)
set(CMAKE_REQUIRED_FLAGS -mpclmul)
endif()

# Detect if we have the needed instructions.
# Also refer to this link for the proper way of detecting i386:
# https://wiki.debian.org/X32Port
# Detect if we have the needed instructions. Also refer to this link for the
# proper way of detecting i386: https://wiki.debian.org/X32Port
set(CMAKE_TRY_COMPILE_TARGET_TYPE STATIC_LIBRARY)
check_c_source_compiles(
"
Expand Down
13 changes: 8 additions & 5 deletions tsl/src/import/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,12 @@ if(USE_UMASH)
list(APPEND SOURCES ${CMAKE_CURRENT_SOURCE_DIR}/umash.c)
endif()

# Disable clang-tidy for imported code
add_library(target_no_static_code_analysis OBJECT ${SOURCES})
set_target_properties(target_no_static_code_analysis PROPERTIES C_CLANG_TIDY "")
if(SOURCES)
# Disable clang-tidy for imported code
add_library(target_no_static_code_analysis OBJECT ${SOURCES})
set_target_properties(target_no_static_code_analysis PROPERTIES C_CLANG_TIDY
"")

target_link_libraries(${TSL_LIBRARY_NAME}
$<TARGET_OBJECTS:target_no_static_code_analysis>)
target_link_libraries(${TSL_LIBRARY_NAME}
$<TARGET_OBJECTS:target_no_static_code_analysis>)
endif()

0 comments on commit 37b4cca

Please sign in to comment.