mirror of
https://github.com/Kitware/CMake.git
synced 2025-12-30 18:29:37 -06:00
PkgC: Add llpkgc to build
This commit is contained in:
@@ -804,6 +804,7 @@ target_link_libraries(
|
||||
LibUV::LibUV
|
||||
Threads::Threads
|
||||
ZLIB::ZLIB
|
||||
llpkgc::llpkgc
|
||||
)
|
||||
|
||||
if(CMake_ENABLE_DEBUGGER)
|
||||
|
||||
@@ -394,3 +394,9 @@ if(CMake_ENABLE_DEBUGGER)
|
||||
CMAKE_SET_TARGET_FOLDER(cppdap "Utilities/3rdParty")
|
||||
endif()
|
||||
endif()
|
||||
|
||||
#---------------------------------------------------------------------
|
||||
# Build llpkgc library.
|
||||
add_subdirectory(Utilities/cmllpkgc)
|
||||
add_library(llpkgc::llpkgc ALIAS cmllpkgc)
|
||||
CMAKE_SET_TARGET_FOLDER(cmllpkgc "Utilities/3rdParty")
|
||||
|
||||
9
Utilities/cmllpkgc/CMakeLists.txt
Normal file
9
Utilities/cmllpkgc/CMakeLists.txt
Normal file
@@ -0,0 +1,9 @@
|
||||
# Disable warnings to avoid changing 3rd party code.
|
||||
if(CMAKE_C_COMPILER_ID MATCHES
|
||||
"^(GNU|LCC|Clang|AppleClang|IBMClang|XLClang|XL|VisualAge|SunPro|HP|Intel|IntelLLVM|NVHPC)$")
|
||||
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -w")
|
||||
elseif(CMAKE_C_COMPILER_ID STREQUAL "PathScale")
|
||||
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -woffall")
|
||||
endif()
|
||||
|
||||
add_library(cmllpkgc STATIC llpkgc.c llpkgc__internal.c)
|
||||
Reference in New Issue
Block a user