From: Sebastian Pipping Date: Mon, 15 Aug 2016 16:13:03 +0000 (+0200) Subject: CMake: Symptom-fix out-of-source builds X-Git-Tag: R_2_2_1~164 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=add34368c6ad081ea6aad381f5a3fc976f8af5e2;p=libexpat CMake: Symptom-fix out-of-source builds --- 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)