diff options
author | Vito Gamberini <vito.gamberini@kitware.com> | 2024-07-22 14:34:45 (GMT) |
---|---|---|
committer | Vito Gamberini <vito.gamberini@kitware.com> | 2024-07-29 17:14:41 (GMT) |
commit | 35734c8de3013c9e4bd2b2693640d2bacd39e49c (patch) | |
tree | b50e7351738fb97aa778852b1725951be76c6652 | |
parent | e6453c200e707f2e15e055c90497e4655cf57847 (diff) | |
download | CMake-35734c8de3013c9e4bd2b2693640d2bacd39e49c.zip CMake-35734c8de3013c9e4bd2b2693640d2bacd39e49c.tar.gz CMake-35734c8de3013c9e4bd2b2693640d2bacd39e49c.tar.bz2 |
PkgC: Add llpkgc to build
-rw-r--r-- | Source/CMakeLists.txt | 1 | ||||
-rw-r--r-- | Source/Modules/CMakeBuildUtilities.cmake | 6 | ||||
-rw-r--r-- | Utilities/cmllpkgc/CMakeLists.txt | 9 |
3 files changed, 16 insertions, 0 deletions
diff --git a/Source/CMakeLists.txt b/Source/CMakeLists.txt index f4ff102..dab2dd3 100644 --- a/Source/CMakeLists.txt +++ b/Source/CMakeLists.txt @@ -804,6 +804,7 @@ target_link_libraries( LibUV::LibUV Threads::Threads ZLIB::ZLIB + llpkgc::llpkgc ) if(CMake_ENABLE_DEBUGGER) diff --git a/Source/Modules/CMakeBuildUtilities.cmake b/Source/Modules/CMakeBuildUtilities.cmake index 4e7f0fe..43d59a0 100644 --- a/Source/Modules/CMakeBuildUtilities.cmake +++ b/Source/Modules/CMakeBuildUtilities.cmake @@ -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") diff --git a/Utilities/cmllpkgc/CMakeLists.txt b/Utilities/cmllpkgc/CMakeLists.txt new file mode 100644 index 0000000..88a382d --- /dev/null +++ b/Utilities/cmllpkgc/CMakeLists.txt @@ -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) |