diff --git a/cmake-d/CMakeDInformation.cmake b/cmake-d/CMakeDInformation.cmake index 8e5fa3a..d7c059c 100644 --- a/cmake-d/CMakeDInformation.cmake +++ b/cmake-d/CMakeDInformation.cmake @@ -152,6 +152,10 @@ if(NOT CMAKE_INCLUDE_FLAG_D) set(CMAKE_INCLUDE_FLAG_D ${CMAKE_INCLUDE_FLAG_D}) endif() +if(NOT CMAKE_D_DEFINE_FLAG) + set(CMAKE_D_DEFINE_FLAG ${CMAKE_D_DEFINE_FLAG}) +endif() + if(NOT CMAKE_INCLUDE_FLAG_SEP_D) set(CMAKE_INCLUDE_FLAG_SEP_D ${CMAKE_INCLUDE_FLAG_SEP_D}) endif() @@ -267,7 +271,7 @@ if(NOT CMAKE_D_COMPILE_OBJECT) " ${CMAKE_D_DASH_O} -c ") else() set(CMAKE_D_COMPILE_OBJECT - " ${CMAKE_D_DASH_O} -c ") + " ${CMAKE_D_DASH_O} -c ") endif() endif() diff --git a/cmake-d/Platform/Linux-gdc.cmake b/cmake-d/Platform/Linux-gdc.cmake index 0f31c26..9761a50 100644 --- a/cmake-d/Platform/Linux-gdc.cmake +++ b/cmake-d/Platform/Linux-gdc.cmake @@ -39,3 +39,4 @@ set(CMAKE_D_CREATE_ASSEMBLY_SOURCE " -S -o