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 "${PROJECT_SOURCE_DIR}/doc" xmlwf.1)\r
+ if(CMAKE_GENERATOR STREQUAL "Unix Makefiles")\r
+ set(make_command "$(MAKE)")\r
+ else()\r
+ set(make_command "make")\r
+ endif()\r
+\r
+ add_custom_command(TARGET expat PRE_BUILD COMMAND "${make_command}" -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