Merge pull request #13 from baruch/patch-1

Add ldc2 to the auto-detection of the compiler
This commit is contained in:
Dragos Carp 2016-10-24 13:20:34 +02:00 committed by GitHub
commit 997264855b

View file

@ -44,7 +44,7 @@ if(NOT CMAKE_D_COMPILER)
if(CMAKE_D_COMPILER_INIT) if(CMAKE_D_COMPILER_INIT)
set(CMAKE_D_COMPILER_LIST ${CMAKE_D_COMPILER_INIT}) set(CMAKE_D_COMPILER_LIST ${CMAKE_D_COMPILER_INIT})
else() 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() endif()
# Find the compiler. # Find the compiler.