]> granicus.if.org Git - libexpat/commitdiff
CMake: Symptom-fix out-of-source builds
authorSebastian Pipping <sebastian@pipping.org>
Mon, 15 Aug 2016 16:13:03 +0000 (18:13 +0200)
committerSebastian Pipping <sebastian@pipping.org>
Mon, 15 Aug 2016 16:13:03 +0000 (18:13 +0200)
expat/CMakeLists.txt

index dbd996fc9d73d8acfd62916241775eb9f482f4ca..04d08c959b2d1665aa3614956a9fd361fdbcb1b9 100755 (executable)
@@ -112,8 +112,8 @@ if(BUILD_tools AND NOT WINCE)
     target_link_libraries(xmlwf expat)\r
     install(TARGETS xmlwf DESTINATION bin)\r
     if(BUILD_doc)\r
-        add_custom_command(TARGET expat PRE_BUILD COMMAND $(MAKE) -C doc xmlwf.1)\r
-        install(FILES doc/xmlwf.1 DESTINATION share/man/man1)\r
+        add_custom_command(TARGET expat PRE_BUILD COMMAND $(MAKE) -C "${PROJECT_SOURCE_DIR}/doc" xmlwf.1)\r
+        install(FILES "${PROJECT_SOURCE_DIR}/doc/xmlwf.1" DESTINATION share/man/man1)\r
     endif()\r
 endif(BUILD_tools AND NOT WINCE)\r
 \r