Skip to content

Commit

Permalink
contrib/libcpuid: use hidden library
Browse files Browse the repository at this point in the history
Signed-off-by: Azat Khuzhin <[email protected]>
  • Loading branch information
azat committed Jan 21, 2022
1 parent f4e437f commit e8365a4
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions contrib/libcpuid-cmake/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,12 @@ set (SRCS
"${LIBRARY_DIR}/libcpuid/recog_intel.c"
)

add_library (cpuid ${SRCS})
add_library (_cpuid ${SRCS})

target_include_directories (cpuid SYSTEM PUBLIC "${LIBRARY_DIR}")
target_compile_definitions (cpuid PRIVATE VERSION="v0.4.1")
target_include_directories (_cpuid SYSTEM PUBLIC "${LIBRARY_DIR}")
target_compile_definitions (_cpuid PRIVATE VERSION="v0.4.1")
if (COMPILER_CLANG)
target_compile_options (cpuid PRIVATE -Wno-reserved-id-macro)
target_compile_options (_cpuid PRIVATE -Wno-reserved-id-macro)
endif ()

add_library(ch_contrib::cpuid ALIAS cpuid)
add_library(ch_contrib::cpuid ALIAS _cpuid)

0 comments on commit e8365a4

Please sign in to comment.