Mercurial > projects > ldc
diff runtime/CMakeLists.txt @ 874:2ddee23bd70e
Get rid of ex-Tango patch. (merged into Tango)
Adjust README and CMakeLists.
author | Christian Kamm <kamm incasoftware de> |
---|---|
date | Tue, 06 Jan 2009 15:54:48 +0100 |
parents | e8337278f49b |
children | 6e68054cfc20 |
line wrap: on
line diff
--- a/runtime/CMakeLists.txt Mon Jan 05 21:11:47 2009 +0100 +++ b/runtime/CMakeLists.txt Tue Jan 06 15:54:48 2009 +0100 @@ -77,23 +77,25 @@ configure_file(${PROJECT_PARENT_DIR}/${LDC_EXE}.conf.in ${PROJECT_BINARY_DIR}/../bin/${LDC_EXE}.conf) -# patch runtime source, uses LDC_EXE for ldc / ldc2 -find_program(PATCH_EXE patch DOC "path to patch tool") -if(NOT PATCH_EXE) - message(STATUS "patch tool not found, can't automatically patch runtime sources for ldc") -else(NOT PATCH_EXE) - add_custom_command( - OUTPUT patch-runtime - COMMAND ${PATCH_EXE} -t -N -p0 -i ${PROJECT_SOURCE_DIR}/${LDC_EXE}.diff - WORKING_DIRECTORY ${RUNTIME_DIR} - ) - # rebuild cache to include sources added by patch - add_custom_command( - OUTPUT recache - COMMAND ${CMAKE_COMMAND} -H${PROJECT_PARENT_DIR} -B${PROJECT_BINARY_DIR}/.. - ) - add_custom_target(patch DEPENDS patch-runtime recache ${LDC_IMPORTS}) -endif(NOT PATCH_EXE) +# patch runtime source, uses LDC_EXE for ldc2 +if(D_VERSION EQUAL 2) + find_program(PATCH_EXE patch DOC "path to patch tool") + if(NOT PATCH_EXE) + message(STATUS "patch tool not found, can't automatically patch runtime sources for ldc") + else(NOT PATCH_EXE) + add_custom_command( + OUTPUT patch-runtime + COMMAND ${PATCH_EXE} -t -N -p0 -i ${PROJECT_SOURCE_DIR}/${LDC_EXE}.diff + WORKING_DIRECTORY ${RUNTIME_DIR} + ) + # rebuild cache to include sources added by patch + add_custom_command( + OUTPUT recache + COMMAND ${CMAKE_COMMAND} -H${PROJECT_PARENT_DIR} -B${PROJECT_BINARY_DIR}/.. + ) + add_custom_target(patch DEPENDS patch-runtime recache ${LDC_IMPORTS}) + endif(NOT PATCH_EXE) +endif(D_VERSION EQUAL 2) file(GLOB GC_D ${RUNTIME_GC_DIR}/*.d) file(GLOB_RECURSE DCRT_D ${RUNTIME_DC_DIR}/*.d)