Skip to content

Commit 5d8a836

Browse files
committedMay 20, 2019
fix(CMakeLists.txt): set "-std=c++11" in CMAKE_CXX_FLAGS
1 parent fecfe39 commit 5d8a836

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎CMakeLists.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ if(MSVC)
149149
endif()
150150

151151
if(UNIX)
152-
add_definitions("-std=c++11")
152+
set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")
153153
endif()
154154

155155
if(NOT DEFINED LIB_INSTALL_DIR)

0 commit comments

Comments
 (0)
Please sign in to comment.