mirror of
https://github.com/zama-ai/concrete.git
synced 2026-04-17 03:00:54 -04:00
19 lines
517 B
CMake
19 lines
517 B
CMake
add_compile_options( -Werror )
|
|
|
|
if (CMAKE_CXX_COMPILER_ID STREQUAL "Clang")
|
|
# using Clang
|
|
add_compile_options( -Wno-error=pessimizing-move -Wno-pessimizing-move )
|
|
elseif (CMAKE_CXX_COMPILER_ID STREQUAL "GNU")
|
|
# using GCC
|
|
if(CMAKE_CXX_COMPILER_VERSION VERSION_GREATER 9.0)
|
|
add_compile_options( -Werror -Wno-error=pessimizing-move -Wno-pessimizing-move )
|
|
endif()
|
|
endif()
|
|
|
|
add_mlir_library(
|
|
ConcretelangCommon
|
|
BitsSize.cpp
|
|
|
|
ADDITIONAL_HEADER_DIRS
|
|
${PROJECT_SOURCE_DIR}/include/concretelang/Common
|
|
) |