From 0dbc13fcb6e786001252b51afd2c7fa1813d915c Mon Sep 17 00:00:00 2001 From: Dragos Carp Date: Sat, 6 Aug 2016 17:52:37 +0200 Subject: [PATCH] Fix #10: CMake 3.4.0: no longer includes --- cmake-d/CMakeDInformation.cmake | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/cmake-d/CMakeDInformation.cmake b/cmake-d/CMakeDInformation.cmake index 7609f59..8e5fa3a 100644 --- a/cmake-d/CMakeDInformation.cmake +++ b/cmake-d/CMakeDInformation.cmake @@ -220,6 +220,7 @@ include(CMakeCommonLanguageInclude) # # # +# (cmake 3.4.0 or later) # # D compiler information @@ -261,8 +262,13 @@ set(CMAKE_D_ARCHIVE_FINISH " ") # compile a D file into an object file if(NOT CMAKE_D_COMPILE_OBJECT) - set(CMAKE_D_COMPILE_OBJECT - " ${CMAKE_D_DASH_O} -c ") + if(CMAKE_VERSION VERSION_LESS 3.4.0) + set(CMAKE_D_COMPILE_OBJECT + " ${CMAKE_D_DASH_O} -c ") + else() + set(CMAKE_D_COMPILE_OBJECT + " ${CMAKE_D_DASH_O} -c ") + endif() endif() if(NOT CMAKE_D_LINK_EXECUTABLE)