Skip to content

Commit

Permalink
gtest requires full c++11 support that clang does not provide (it seems)
Browse files Browse the repository at this point in the history
  • Loading branch information
andrej-sajenko committed Sep 26, 2018
1 parent 05df818 commit f4747b3
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ ExternalProject_Add(GTEST_PROJECT
PREFIX ${CMAKE_CURRENT_BINARY_DIR}/third-party/gtest
CMAKE_ARGS "-DBUILD_GTEST=ON -DBUILD_GMOCK=OFF -DINSTALL_GTEST=OFF -DINSTALL_GMOCK=OFF"
INSTALL_COMMAND ""
BUILD_COMMAND "${MAKE}" --build .)
BUILD_COMMAND "${MAKE}" -DCMAKE_CXX_FLAGS=-std=c++11 -fpermissive -stdlib=libc++ --build .)

ExternalProject_Get_Property(GTEST_PROJECT source_dir)
ExternalProject_Get_Property(GTEST_PROJECT binary_dir)
Expand Down Expand Up @@ -73,7 +73,3 @@ file(GLOB MAIN "src-view/*.cpp") # all test fi
add_executable(main ${LIB_SOURCES} ${MAIN})
find_package(Threads)
target_compile_options(main PRIVATE -std=c++11 -O3)

set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -O0")

set(CMAKE_C_FLAGS_DEBUG "${CMAKE_C_FLAGS_DEBUG} -O0")

0 comments on commit f4747b3

Please sign in to comment.