diff options
Diffstat (limited to 'src/common/CMakeLists.txt')
| -rw-r--r-- | src/common/CMakeLists.txt | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/src/common/CMakeLists.txt b/src/common/CMakeLists.txt index a02696873..c0555f840 100644 --- a/src/common/CMakeLists.txt +++ b/src/common/CMakeLists.txt | |||
| @@ -156,12 +156,13 @@ if (MSVC) | |||
| 156 | ) | 156 | ) |
| 157 | target_compile_options(common PRIVATE | 157 | target_compile_options(common PRIVATE |
| 158 | /W4 | 158 | /W4 |
| 159 | /WX | 159 | |
| 160 | /we4242 # 'identifier': conversion from 'type1' to 'type2', possible loss of data | ||
| 161 | /we4254 # 'operator': conversion from 'type1:field_bits' to 'type2:field_bits', possible loss of data | ||
| 162 | /we4800 # Implicit conversion from 'type' to bool. Possible information loss | ||
| 160 | ) | 163 | ) |
| 161 | else() | 164 | else() |
| 162 | target_compile_options(common PRIVATE | 165 | target_compile_options(common PRIVATE |
| 163 | -Werror | ||
| 164 | |||
| 165 | $<$<CXX_COMPILER_ID:Clang>:-fsized-deallocation> | 166 | $<$<CXX_COMPILER_ID:Clang>:-fsized-deallocation> |
| 166 | ) | 167 | ) |
| 167 | endif() | 168 | endif() |
| @@ -169,7 +170,11 @@ endif() | |||
| 169 | create_target_directory_groups(common) | 170 | create_target_directory_groups(common) |
| 170 | 171 | ||
| 171 | target_link_libraries(common PUBLIC ${Boost_LIBRARIES} fmt::fmt microprofile Threads::Threads) | 172 | target_link_libraries(common PUBLIC ${Boost_LIBRARIES} fmt::fmt microprofile Threads::Threads) |
| 172 | target_link_libraries(common PRIVATE lz4::lz4) | 173 | if (TARGET lz4::lz4) |
| 174 | target_link_libraries(common PRIVATE lz4::lz4) | ||
| 175 | else() | ||
| 176 | target_link_libraries(common PRIVATE LZ4::lz4_shared) | ||
| 177 | endif() | ||
| 173 | if (TARGET zstd::zstd) | 178 | if (TARGET zstd::zstd) |
| 174 | target_link_libraries(common PRIVATE zstd::zstd) | 179 | target_link_libraries(common PRIVATE zstd::zstd) |
| 175 | else() | 180 | else() |