Skip to content

Commit 385e74e

Browse files
committed
build: use appropriate CMake variable
1 parent dc507d1 commit 385e74e

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++11 -fPIC")
120+
set(CMAKE_CXX_STANDARD 11)
121+
set(CMAKE_POSITION_INDEPENDENT_CODE ON)
121122
endif()
122123

123124
# Recurse into main project directory

0 commit comments

Comments
 (0)