Fixes for detecting standard library
This commit is contained in:
parent
c315c3f0d3
commit
4889158b84
2 changed files with 7 additions and 1 deletions
|
@ -142,7 +142,7 @@ ELSE(CMAKE_COMPILER_IS_GDC)
|
|||
SET(CMAKE_LIBRARY_PATH_FLAG "-L")
|
||||
ENDIF(${CMAKE_SYSTEM_NAME} STREQUAL "Windows")
|
||||
ENDIF(CMAKE_COMPILER_IS_GDC)
|
||||
|
||||
|
||||
IF(CMAKE_D_USE_TANGO)
|
||||
IF(CMAKE_COMPILER_IS_GDC)
|
||||
SET(DSTDLIB_TYPE "-fversion=Tango")
|
||||
|
|
|
@ -158,6 +158,12 @@ ELSE(NOT CMAKE_D_TANGO_WORKS)
|
|||
ENDIF(C_TEST_WAS_RUN)
|
||||
SET(CMAKE_D_TANGO_WORKS 1 CACHE INTERNAL "")
|
||||
ENDIF(NOT CMAKE_D_TANGO_WORKS)
|
||||
|
||||
# if both tango and phobos are selected try to choose which one is available
|
||||
IF(CMAKE_D_USE_TANGO AND CMAKE_D_USE_PHOBOS)
|
||||
MESSAGE(FATAL_ERROR "Tango AND Phobos selected, please choose one or the other!")
|
||||
ENDIF(CMAKE_D_USE_TANGO AND CMAKE_D_USE_PHOBOS)
|
||||
|
||||
# ensure the user has the appropriate std lib available
|
||||
IF(CMAKE_D_USE_TANGO AND NOT CMAKE_D_TANGO_WORKS)
|
||||
MESSAGE(FATAL_ERROR "Tango is required for this project, but it is not available!")
|
||||
|
|
Loading…
Add table
Reference in a new issue