diff options
| author | yangwei <[email protected]> | 2024-11-11 17:39:12 +0800 |
|---|---|---|
| committer | yangwei <[email protected]> | 2024-11-11 17:39:12 +0800 |
| commit | 1dfc7d36e1fe19425c477d17fba5377bfaa5f0b4 (patch) | |
| tree | f1748a91a50e7495a0629bd358a0372acd65a0ff | |
| parent | 634a3a884c27f8a06b9b56b581e0af76484e28f0 (diff) | |
🔧 build(rulescan cxx flags): ignore narrowing for el9
| -rw-r--r-- | vendor/CMakeLists.txt | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/vendor/CMakeLists.txt b/vendor/CMakeLists.txt index 0059e28..ad13668 100644 --- a/vendor/CMakeLists.txt +++ b/vendor/CMakeLists.txt @@ -81,7 +81,12 @@ file(MAKE_DIRECTORY ${VENDOR_BUILD}/include) #rulescan 3.0.1 ExternalProject_Add(rulescan PREFIX rulescan URL ${CMAKE_CURRENT_SOURCE_DIR}/rulescan-3.0.1.tar.gz - CMAKE_ARGS -DCMAKE_INSTALL_PREFIX=${VENDOR_BUILD} -DCMAKE_BUILD_TYPE=${CMAKE_BUILD_TYPE} -DCMAKE_C_FLAGS="-fPIC" -DCMAKE_CXX_FLAGS="-fPIC") + CMAKE_ARGS + -DCMAKE_INSTALL_PREFIX=${VENDOR_BUILD} + -DCMAKE_BUILD_TYPE=${CMAKE_BUILD_TYPE} + -DCMAKE_C_FLAGS="-fPIC" + -DCMAKE_CXX_FLAGS="-fPIC" + -DCMAKE_CXX_FLAGS="-Wno-error=narrowing") ExternalProject_Get_Property(rulescan INSTALL_DIR) file(MAKE_DIRECTORY ${VENDOR_BUILD}/include) |
