Skip to content

Commit

Permalink
Force c++11 flag to check_cxx_source_compiles that has not be taken a…
Browse files Browse the repository at this point in the history
…ccount on some system.
  • Loading branch information
Ledjlale committed Oct 12, 2022
1 parent 5358451 commit 7ee2016
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@ if(NOT ANDROID)
check_include_file(sys/shm.h HAVE_SYS_SHM_H)
endif()

set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")# need this for check_cxx_source_compiles because CMAKE_CXX_STANDARD doesn't work.
check_cxx_source_compiles("#include <atomic>
using namespace std;
int main(int argc, char *argv[]) {
Expand Down

0 comments on commit 7ee2016

Please sign in to comment.