Skip to content

Commit

Permalink
try to fix crosscompiling builds
Browse files Browse the repository at this point in the history
See: #58

add sanity check
Thanks to https://github.com/leleliu008
  • Loading branch information
shlomif committed Dec 14, 2021
1 parent 4b5bb26 commit bf93bf2
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
4 changes: 4 additions & 0 deletions fortune-mod/datfiles/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
# 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()
Expand Down
4 changes: 3 additions & 1 deletion fortune-mod/util/rot.pl
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,10 @@
#
# 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/ >
#
Expand Down

0 comments on commit bf93bf2

Please sign in to comment.