Skip to content

Commit

Permalink
[build] Fixed -std=c++11 flag usage with HAVE_COMPILER_GNU_COMPAT
Browse files Browse the repository at this point in the history
  • Loading branch information
maxsharabayko authored and rndi committed Sep 6, 2019
1 parent 17890bb commit fdee213
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -731,7 +731,7 @@ install(FILES ${CMAKE_CURRENT_BINARY_DIR}/srt.pc DESTINATION ${CMAKE_INSTALL_LIB

# Applications

if ( HAVE_COMPILER_GNU_COMPAT )
if (HAVE_COMPILER_GNU_COMPAT AND ENABLE_CXX11)
message(STATUS "C++ VERSION: Setting C++11 compat flag for gnu compiler")
set (CFLAGS_CXX_STANDARD "-std=c++11")
else()
Expand Down

0 comments on commit fdee213

Please sign in to comment.