Skip to content

Commit 92701b9

Browse files
committed
build: use appropriate CMake variable
1 parent c610704 commit 92701b9

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

CMakeLists.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,8 @@ include_directories(${PROJECT_BINARY_DIR})
117117
# Compiler flags
118118

119119
if(NOT MSVC)
120-
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++17 -fPIC")
120+
set(CMAKE_CXX_STANDARD 17)
121+
set(CMAKE_POSITION_INDEPENDENT_CODE ON)
121122
endif()
122123

123124
# Recurse into main project directory

0 commit comments

Comments
 (0)