Add ldc2 to the auto-detection of the compiler

Closes issue #12
This commit is contained in:
Baruch Even 2016-10-24 09:31:20 +03:00 committed by GitHub
parent f65250a4e2
commit e8b04456ae

View file

@ -44,7 +44,7 @@ if(NOT CMAKE_D_COMPILER)
if(CMAKE_D_COMPILER_INIT)
set(CMAKE_D_COMPILER_LIST ${CMAKE_D_COMPILER_INIT})
else()
set(CMAKE_D_COMPILER_LIST ${_CMAKE_TOOLCHAIN_PREFIX}gdc ${_CMAKE_TOOLCHAIN_PREFIX}dmd)
set(CMAKE_D_COMPILER_LIST ${_CMAKE_TOOLCHAIN_PREFIX}gdc ${_CMAKE_TOOLCHAIN_PREFIX}dmd ${_CMAKE_TOOLCHAIN_PREFIX}ldc2)
endif()
# Find the compiler.