void-packages/srcpkgs/trackballs/patches/respect-our-cpp.patch

14 lines
631 B
Diff

Index: CMakeLists.txt
===================================================================
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -66,7 +66,7 @@ endforeach()
# cpp is the c++ preprocessor
add_custom_command(OUTPUT guile.cc.x
- COMMAND CPP=cpp; ${GUILE_SNARF} -o guile.cc.x ${PROJECT_SOURCE_DIR}/src/guile.cc ${defstr} ${incstr} -D_GNU_SOURCE=1 -D_REENTRANT
+ COMMAND ${GUILE_SNARF} -o guile.cc.x ${PROJECT_SOURCE_DIR}/src/guile.cc ${defstr} ${incstr} -D_GNU_SOURCE=1 -D_REENTRANT
DEPENDS src/guile.cc
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR})