Skip to content
Snippets Groups Projects
Commit dac6a6d5 authored by BaM's avatar BaM
Browse files

test

parent b537004a
No related branches found
No related tags found
No related merge requests found
......@@ -3,6 +3,13 @@ find_package(Threads REQUIRED)
# Enable ExternalProject CMake module
include(ExternalProject)
INCLUDE(CheckCXXCompilerFlag)
CHECK_CXX_COMPILER_FLAG("-std=c++11" COMPILER_SUPPORTS_CXX11)
IF(COMPILER_SUPPORTS_CXX11)
SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")
ELSE()
MESSAGE(STATUS "The compiler ${CMAKE_CXX_COMPILER} has no C++11 support. Please use a different C++ compiler.")
ENDIF()
# Download and install GoogleTest
ExternalProject_Add(
gtest
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment