First page Back Continue Last page Overview Graphics
KDE4 on OpenBSD: audio CD
Solution: added if(ALSA_FOUND) checks:
-alsa_configure_file(${CMAKE_CURRENT_BINARY_DIR}/config-alsa.h)
+if(ALSA_FOUND)
+ alsa_configure_file(
+ ${CMAKE_CURRENT_BINARY_DIR}/config-alsa.h)
+else(ALSA_FOUND)
+ file(WRITE ${CMAKE_CURRENT_BINARY_DIR}/config-alsa.h
+ "/* stub */")
+endif(ALSA_FOUND)
This is ugly, because the whole point of configure_file() routines is that they should be callable always.