We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9ced2f4 commit 41226d0Copy full SHA for 41226d0
CMakeLists.txt
@@ -23,9 +23,9 @@ if (DEFINED ENV{LLVM_DIR})
23
# Set the C++ standard to C++17 and configure compiler flags based on the build type
24
set(CMAKE_CXX_STANDARD 17)
25
if(CMAKE_BUILD_TYPE MATCHES "Debug")
26
- set(CMAKE_CXX_FLAGS "-fPIC -std=gnu++17 -O0 -fno-rtti -Wno-deprecated")
+ set(CMAKE_CXX_FLAGS "-fPIC -std=gnu++17 -O0 -fno-rtti -Wno-deprecated -Werror")
27
else()
28
- set(CMAKE_CXX_FLAGS "-fPIC -std=gnu++17 -O3 -fno-rtti -Wno-deprecated")
+ set(CMAKE_CXX_FLAGS "-fPIC -std=gnu++17 -O3 -fno-rtti -Wno-deprecated -Werror")
29
endif()
30
set(CMAKE_C_FLAGS "-fPIC")
31
# Check if compiler is GNU and version is less than 9
0 commit comments