mirror of https://github.com/WerWolv/ImHex
build: Only build the version stripper on mingw
This commit is contained in:
parent
495608ed7c
commit
a4ee590875
|
|
@ -332,6 +332,7 @@ macro(createPackage)
|
||||||
endforeach()
|
endforeach()
|
||||||
]])
|
]])
|
||||||
|
|
||||||
|
if (NOT MSVC)
|
||||||
set(VERSIONLESS_LIBWINPTHREAD "${CMAKE_BINARY_DIR}/libwinpthread-1.dll")
|
set(VERSIONLESS_LIBWINPTHREAD "${CMAKE_BINARY_DIR}/libwinpthread-1.dll")
|
||||||
find_file(LIBWINPTHREAD_PATH NAMES libwinpthread-1.dll)
|
find_file(LIBWINPTHREAD_PATH NAMES libwinpthread-1.dll)
|
||||||
if (NOT LIBWINPTHREAD_PATH)
|
if (NOT LIBWINPTHREAD_PATH)
|
||||||
|
|
@ -354,6 +355,7 @@ macro(createPackage)
|
||||||
install(FILES ${VERSIONLESS_LIBWINPTHREAD}
|
install(FILES ${VERSIONLESS_LIBWINPTHREAD}
|
||||||
DESTINATION "${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_BINDIR}"
|
DESTINATION "${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_BINDIR}"
|
||||||
)
|
)
|
||||||
|
endif()
|
||||||
|
|
||||||
downloadImHexPatternsFiles(".")
|
downloadImHexPatternsFiles(".")
|
||||||
elseif(UNIX AND NOT APPLE)
|
elseif(UNIX AND NOT APPLE)
|
||||||
|
|
|
||||||
|
|
@ -7,8 +7,11 @@ endif ()
|
||||||
add_subdirectory(gui)
|
add_subdirectory(gui)
|
||||||
if (WIN32)
|
if (WIN32)
|
||||||
add_subdirectory(forwarder)
|
add_subdirectory(forwarder)
|
||||||
|
|
||||||
|
if (NOT MSVC)
|
||||||
add_subdirectory(version_stripper)
|
add_subdirectory(version_stripper)
|
||||||
endif()
|
endif()
|
||||||
|
endif ()
|
||||||
|
|
||||||
if (NOT EMSCRIPTEN)
|
if (NOT EMSCRIPTEN)
|
||||||
add_subdirectory(updater)
|
add_subdirectory(updater)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue