CMake: Add PHOBOS2_DIR to cache, so it would be accessible using ccmake

This commit is contained in:
Alexey Prokhin
2011-02-23 20:49:00 +03:00
parent 40621f55d5
commit f7e2b7eec6

View File

@@ -58,6 +58,7 @@ if(D_VERSION EQUAL 1)
file(GLOB DCRT_C ${RUNTIME_DC_DIR}/*.c)
set(CONFIG_NAME ${LDC_EXE})
elseif(D_VERSION EQUAL 2)
set(PHOBOS2_DIR ${PROJECT_PARENT_DIR}/../${RUNTIME} CACHE PATH "phobos2 source dir")
set(RUNTIME_CC druntime-core)
set(RUNTIME_GC druntime-gc-basic)
set(RUNTIME_DC druntime-rt-ldc)