Skip to content

Commit

Permalink
only look for C++ compiler with CMake (#256)
Browse files Browse the repository at this point in the history
Problem: ContinuumIO/anaconda-issues#9096

For unclear reason, only the C compiler fails CMake's compiler tests.
But since doctest is a header-only C++ library, we can just allow it
to be built with miniconda3's toolchain on MacOSX under SDK>=10.14.

This change can also reduce compiler testing time.
  • Loading branch information
zhihaoy authored and onqtam committed Aug 5, 2019
1 parent 92e8615 commit 7df0644
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Expand Up @@ -5,7 +5,7 @@ cmake_minimum_required(VERSION 3.0)
################################################################################

file(READ ${CMAKE_CURRENT_SOURCE_DIR}/scripts/version.txt ver)
project(doctest VERSION ${ver})
project(doctest VERSION ${ver} LANGUAGES CXX)

option(DOCTEST_WITH_TESTS "Build tests/examples" ON)
option(DOCTEST_WITH_MAIN_IN_STATIC_LIB "Build a static lib (cmake target) with a default main entry point" ON)
Expand Down

0 comments on commit 7df0644

Please sign in to comment.