Skip to content

Commit 018cb3a

Browse files
committed
cmake: Add C++ flags
1 parent a135bc9 commit 018cb3a

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

CMakeLists.txt

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,13 @@ set(CMAKE_INSTALL_PREFIX "/")
5252

5353
list(APPEND CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/cmake)
5454

55+
add_compile_options( -Wno-psabi ) # disable ABI change message of g++8
56+
add_compile_options( -Wall -Wextra -pedantic -pthread )
57+
58+
set( CMAKE_CXX_STANDARD 17 )
59+
set( CMAKE_CXX_STANDARD_REQUIRED ON )
60+
set( CMAKE_POSITION_INDEPENDENT_CODE ON )
61+
5562
set(TCAM_FW_SOURCE_DIR "${CMAKE_CURRENT_SOURCE_DIR}")
5663
set(TCAM_FW_BINARY_DIR "${CMAKE_CURRENT_BINARY_DIR}")
5764

0 commit comments

Comments
 (0)