summaryrefslogtreecommitdiff
path: root/cmake/FindEditbin.cmake
blob: 363bc00539a5a0b04b97fdf36c6e5bfb36d85bf9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
# Autodetect editbin. Only useful for MSVC.

get_filename_component(MSVC_COMPILE_DIRECTORY ${CMAKE_CXX_COMPILER} DIRECTORY)
find_program(
    EDITBIN_EXECUTABLE editbin.exe
    HINTS ${MSVC_COMPILE_DIRECTORY}
)

include(FindPackageHandleStandardArgs)
find_package_handle_standard_args(Editbin
    FOUND_VAR EDITBIN_FOUND
    REQUIRED_VARS EDITBIN_EXECUTABLE
)