]> granicus.if.org Git - check/commitdiff
Remove support for old CMake version
authorMikko Johannes Koivunalho <mikko.koivunalho@iki.fi>
Sat, 8 Jun 2019 20:00:53 +0000 (22:00 +0200)
committerMikko Johannes Koivunalho <mikko.koivunalho@iki.fi>
Mon, 2 Sep 2019 17:05:07 +0000 (19:05 +0200)
Signed-off-by: Mikko Johannes Koivunalho <mikko.koivunalho@iki.fi>
src/CMakeLists.txt

index 4cc3747db1c3cc44f8b8782c742a6a9772bacf24..6a86811c3e3f173e03abdcebd194d1800520dce8 100644 (file)
@@ -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
-      $<BUILD_INTERFACE:${CMAKE_CURRENT_BINARY_DIR}>
-      $<INSTALL_INTERFACE:include>)
-endif()
+target_include_directories(check
+  PUBLIC
+    $<BUILD_INTERFACE:${CMAKE_CURRENT_BINARY_DIR}>
+    $<INSTALL_INTERFACE:include>)
 
 if(MSVC)
   add_definitions(-DCK_DLL_EXP=_declspec\(dllexport\))