Fix #17: Fix compile search order

This commit is contained in:
Dragos Carp 2017-06-17 00:07:58 +02:00
parent 086b5c86c9
commit 2f3f6b1b07

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 ${_CMAKE_TOOLCHAIN_PREFIX}ldc2)
set(CMAKE_D_COMPILER_LIST ${_CMAKE_TOOLCHAIN_PREFIX}dmd ${_CMAKE_TOOLCHAIN_PREFIX}ldc2 ${_CMAKE_TOOLCHAIN_PREFIX}gdc)
endif()
# Find the compiler.