From add34368c6ad081ea6aad381f5a3fc976f8af5e2 Mon Sep 17 00:00:00 2001 From: Sebastian Pipping Date: Mon, 15 Aug 2016 18:13:03 +0200 Subject: [PATCH] CMake: Symptom-fix out-of-source builds --- expat/CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/expat/CMakeLists.txt b/expat/CMakeLists.txt index dbd996fc..04d08c95 100755 --- a/expat/CMakeLists.txt +++ b/expat/CMakeLists.txt @@ -112,8 +112,8 @@ if(BUILD_tools AND NOT WINCE) target_link_libraries(xmlwf expat) install(TARGETS xmlwf DESTINATION bin) if(BUILD_doc) - add_custom_command(TARGET expat PRE_BUILD COMMAND $(MAKE) -C doc xmlwf.1) - install(FILES doc/xmlwf.1 DESTINATION share/man/man1) + add_custom_command(TARGET expat PRE_BUILD COMMAND $(MAKE) -C "${PROJECT_SOURCE_DIR}/doc" xmlwf.1) + install(FILES "${PROJECT_SOURCE_DIR}/doc/xmlwf.1" DESTINATION share/man/man1) endif() endif(BUILD_tools AND NOT WINCE) -- 2.40.0