See: https://github.com/shlomif/fortune-mod/issues/58
add sanity check
Thanks to https://github.com/leleliu008
# See: https://github.com/shlomif/fortune-mod/issues/58
if ("${IS_CROSS}")
SET (_strfile "strfile")
+ find_program(_found "${_strfile}")
+ if (NOT "${_found}")
+ MESSAGE(FATAL_ERROR "\"strfile\" must be in the executables' path for cross-compiling builds. You can get it from a native install of fortune-mod: https://superuser.com/questions/284342/what-are-path-and-other-environment-variables-and-how-can-i-set-or-use-them . Also see https://github.com/shlomif/fortune-mod/issues/58 .")
+ endif()
else()
SET (_strfile "${CMAKE_CURRENT_BINARY_DIR}/../strfile")
endif()
#
# Short description for rot.pl
#
-# rot13 for cross compiling builds:
+# rot13 fallback for cross compiling builds:
+#
# https://github.com/shlomif/fortune-mod/issues/58
+#
# Version 0.0.1
# Copyright (C) 2021 Shlomi Fish < https://www.shlomifish.org/ >
#