PkgC: Add llpkgc to build

This commit is contained in:
Vito Gamberini
2024-07-22 10:34:45 -04:00
parent e6453c200e
commit 35734c8de3
3 changed files with 16 additions and 0 deletions

View File

@@ -804,6 +804,7 @@ target_link_libraries(
LibUV::LibUV
Threads::Threads
ZLIB::ZLIB
llpkgc::llpkgc
)
if(CMake_ENABLE_DEBUGGER)

View File

@@ -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")

View 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)