From f0706207df377e876b2f0d3466941564967b7e35 Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Sat, 20 Jun 2015 06:46:49 -0700 Subject: Cmake support: remove Documentation/images in build dir In earlier versions we didn't simply create a link but actually copied the directory and its contents. So for this to work smoothly for people who have built earlier versions of Subsurface with cmake we need to no just remove the link but be willing to recursively remove that directory. Signed-off-by: Dirk Hohndel --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index e562bd872..cb5082d49 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -490,7 +490,7 @@ if(NOT insource) documentationLink ALL COMMAND mkdir -p ${CMAKE_BINARY_DIR}/Documentation/ && - rm -f ${CMAKE_BINARY_DIR}/Documentation/images && + rm -rf ${CMAKE_BINARY_DIR}/Documentation/images && ln -s ${CMAKE_SOURCE_DIR}/Documentation/images ${CMAKE_BINARY_DIR}/Documentation/images ) endif() -- cgit v1.2.3-70-g09d2