Skip to content

Commit

Permalink
change C++11 compare.
Browse files Browse the repository at this point in the history
  • Loading branch information
freeeyes committed Feb 13, 2025
1 parent 6f73e60 commit 7bf978e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ project(PSS_alpha)
if(UNIX)
#linux
include(CheckCXXCompilerFlag)
CHECK_CXX_COMPILER_FLAG("-std=c++17" COMPILER_SUPPORTS_CXX17)
if(COMPILER_SUPPORTS_CXX17)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++17")
CHECK_CXX_COMPILER_FLAG("-std=c++11" COMPILER_SUPPORTS_CXX11)
if(COMPILER_SUPPORTS_CXX11)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")
endif()

#message("[pss build]build jemalloc begin")
Expand Down

0 comments on commit 7bf978e

Please sign in to comment.