You've already forked mariadb-columnstore-engine
mirror of
https://github.com/mariadb-corporation/mariadb-columnstore-engine.git
synced 2025-07-30 19:23:07 +03:00
Workaround for gtest compile bug
This commit is contained in:
committed by
mariadb-RomanNavrotskiy
parent
48fc0cd822
commit
56b01fdefc
@ -5,10 +5,17 @@ if (WITH_UNITTESTS)
|
|||||||
set(EXTERNAL_INSTALL_LOCATION ${CMAKE_BINARY_DIR}/external)
|
set(EXTERNAL_INSTALL_LOCATION ${CMAKE_BINARY_DIR}/external)
|
||||||
ExternalProject_Add(googletest
|
ExternalProject_Add(googletest
|
||||||
GIT_REPOSITORY https://github.com/google/googletest
|
GIT_REPOSITORY https://github.com/google/googletest
|
||||||
GIT_TAG release-1.11.0
|
GIT_TAG release-1.12.0
|
||||||
CMAKE_ARGS -DCMAKE_INSTALL_PREFIX=${EXTERNAL_INSTALL_LOCATION} -DBUILD_SHARED_LIBS=ON
|
CMAKE_ARGS -DCMAKE_INSTALL_PREFIX=${EXTERNAL_INSTALL_LOCATION} -DBUILD_SHARED_LIBS=ON
|
||||||
)
|
)
|
||||||
|
|
||||||
|
# this is a workaround for gtest's bug still not closed
|
||||||
|
# https://github.com/google/googletest/issues/3659
|
||||||
|
if (CMAKE_CXX_COMPILER_ID STREQUAL "Clang")
|
||||||
|
MY_CHECK_AND_SET_COMPILER_FLAG("-U__cpp_char8_t")
|
||||||
|
endif()
|
||||||
|
|
||||||
|
|
||||||
include_directories(${EXTERNAL_INSTALL_LOCATION}/include)
|
include_directories(${EXTERNAL_INSTALL_LOCATION}/include)
|
||||||
# lib64 for RPM-based distros
|
# lib64 for RPM-based distros
|
||||||
link_directories(${EXTERNAL_INSTALL_LOCATION}/lib ${EXTERNAL_INSTALL_LOCATION}/lib64)
|
link_directories(${EXTERNAL_INSTALL_LOCATION}/lib ${EXTERNAL_INSTALL_LOCATION}/lib64)
|
||||||
|
Reference in New Issue
Block a user