-
-
Notifications
You must be signed in to change notification settings - Fork 649
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Compile error on MAC OS with AppleClang 8.0.0.8000042 #266
Comments
This is perhaps the same as this one: #243 Basically you just need to tell it to use C++11 - seems that the default for that apple clang is c++98 I'll look at this when possible. |
Hi Viktor,
with this patch it seems to work on my machine
… Am 09.08.2019 um 22:38 schrieb Viktor Kirilov ***@***.***>:
This is perhaps the same as this one:
#243 <#243>
Basically you just need to tell it to use C++11 - seems that the default for that apple clang is c++98
I'll look at this when possible.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub <#266>, or mute the thread <https://github.com/notifications/unsubscribe-auth/AAN7QWVZ5CEZRPVS7AJR3W3QDXIVBANCNFSM4IKXA5PQ>.
|
Hi Viktor,
there is also a small improvement possible at doc tree, and example tree:
… Am 09.08.2019 um 22:38 schrieb Viktor Kirilov ***@***.***>:
This is perhaps the same as this one:
#243 <#243>
Basically you just need to tell it to use C++11 - seems that the default for that apple clang is c++98
I'll look at this when possible.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub <#266>, or mute the thread <https://github.com/notifications/unsubscribe-auth/AAN7QWVZ5CEZRPVS7AJR3W3QDXIVBANCNFSM4IKXA5PQ>.
|
cmake_minimum_required(VERSION 3.0)
project(example_exe VERSION 0.0.1 LANGUAGES CXX)
find_package(doctest REQUIRED) # prepare to use doctest/doctest.h header only interface
add_executable(${PROJECT_NAME} main.cpp)
target_compile_features(${PROJECT_NAME} PRIVATE cxx_std_17)
target_link_libraries(${PROJECT_NAME} PRIVATE doctest:: doctest) # this set include path too! |
I'll merge your PR, but I'll try something different for the C++11 issue after that. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Description
With default cmake setting it run alway in problems.
Without tests, it works fine!
And with clang version 7.0.1 (tags/RELEASE_701/final) it works too.
Claus-MBP:build clausklein$ ninja -v ninja: no work to do. Claus-MBP:build clausklein$ cmake -L . -- Cache values CMAKE_BUILD_TYPE:STRING= CMAKE_EXECUTABLE_FORMAT:STRING=MACHO CMAKE_INSTALL_PREFIX:PATH=/usr/local CMAKE_OSX_ARCHITECTURES:STRING= CMAKE_OSX_DEPLOYMENT_TARGET:STRING= CMAKE_OSX_SYSROOT:STRING= DOCTEST_NO_INSTALL:BOOL=OFF DOCTEST_TEST_MODE:STRING=COMPARE DOCTEST_WITH_MAIN_IN_STATIC_LIB:BOOL=ON DOCTEST_WITH_TESTS:BOOL=OFF Claus-MBP:build clausklein$
Steps to reproduce
Extra information
The text was updated successfully, but these errors were encountered: