patch-CMakeLists_txt 914 B

123456789101112131415161718192021222324252627
  1. --- ympd-1.2.2.orig/CMakeLists.txt 2014-09-28 13:39:27.000000000 +0200
  2. +++ ympd-1.2.2/CMakeLists.txt 2014-10-05 00:46:09.000000000 +0200
  3. @@ -16,9 +16,6 @@ include_directories(${PROJECT_BINARY_DIR
  4. include(CheckCSourceCompiles)
  5. -set(CMAKE_C_FLAGS "-std=gnu99 -Wall")
  6. -set(CMAKE_C_FLAGS_DEBUG "-ggdb -pedantic")
  7. -
  8. file(GLOB RESOURCES
  9. RELATIVE ${PROJECT_SOURCE_DIR}
  10. htdocs/js/*
  11. @@ -28,11 +25,11 @@ file(GLOB RESOURCES
  12. htdocs/index.html
  13. )
  14. -add_executable(mkdata htdocs/mkdata.c)
  15. -get_target_property(MKDATA_EXE mkdata LOCATION)
  16. +#add_executable(mkdata htdocs/mkdata.c)
  17. +#get_target_property(MKDATA_EXE mkdata LOCATION)
  18. add_custom_command(OUTPUT ${PROJECT_BINARY_DIR}/assets.c
  19. - COMMAND ${MKDATA_EXE} ${RESOURCES} > ${PROJECT_BINARY_DIR}/assets.c
  20. + COMMAND ./mkdata ${RESOURCES} > ${PROJECT_BINARY_DIR}/assets.c
  21. WORKING_DIRECTORY ${PROJECT_SOURCE_DIR}
  22. DEPENDS ${RESOURCES} mkdata
  23. )