From: Mikko Johannes Koivunalho Date: Sat, 8 Jun 2019 20:00:53 +0000 (+0200) Subject: Remove support for old CMake version X-Git-Tag: 0.13.0~6^2~11 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=3c78db405230f717d1d5c6a48daaf48044b7ee77;p=check Remove support for old CMake version Signed-off-by: Mikko Johannes Koivunalho --- diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 4cc3747..6a86811 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -48,14 +48,10 @@ configure_file(check.h.in check.h) add_library(check STATIC ${SOURCES} ${HEADERS}) target_link_libraries(check ${LIBM} ${LIBRT} ${SUBUNIT}) # Enable finding check.h -if(CMAKE_VERSION VERSION_LESS 2.8.12) - include_directories(${CMAKE_CURRENT_BINARY_DIR}) -else() - target_include_directories(check - PUBLIC - $ - $) -endif() +target_include_directories(check + PUBLIC + $ + $) if(MSVC) add_definitions(-DCK_DLL_EXP=_declspec\(dllexport\))