Skip to content

Commit

Permalink
cmake: add check that the best guessed file name of the dlltool looks…
Browse files Browse the repository at this point in the history
… OK.
  • Loading branch information
jannick0 authored and jrfonseca committed Jul 29, 2019
1 parent 1047180 commit c35fbe6
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,9 @@ add_subdirectory (thirdparty/zlib)
# Find dlltool
get_filename_component (GCC_NAME ${CMAKE_C_COMPILER} NAME)
string (REGEX REPLACE g?cc dlltool DLLTOOL_NAME ${GCC_NAME})
if (NOT DLLTOOL_NAME MATCHES dlltool)
message (FATAL_ERROR "Best guessing the file name of dlltool failed: ${DLLTOOL_NAME}")
endif ()
find_program (DLLTOOL NAMES ${DLLTOOL_NAME})
if (DLLTOOL)
message (STATUS "Found dlltool: ${DLLTOOL}")
Expand Down

0 comments on commit c35fbe6

Please sign in to comment.