FindPIP.cmake windows cross-android
This commit is contained in:
@@ -78,9 +78,17 @@ find_file(PIP_H_INCLUDE "pip.h" HINTS ${_PIP_INCDIR} $ENV{SMSDK_DIR}/include/pip
|
||||
#else()
|
||||
get_filename_component(PIP_INCLUDES ${PIP_H_INCLUDE} PATH)
|
||||
#endif()
|
||||
find_program(PIP_CMG pip_cmg HINTS ${_PIP_BINDIR} ${_PIP_FP_DP})
|
||||
find_program(PIP_RC pip_rc HINTS ${_PIP_BINDIR} ${_PIP_FP_DP})
|
||||
find_program(PIP_DEPLOY_TOOL deploy_tool HINTS ${_PIP_BINDIR} ${_PIP_FP_DP})
|
||||
set(__ext "")
|
||||
if ("x${CMAKE_HOST_SYSTEM_NAME}" STREQUAL "xWindows")
|
||||
set(__ext ".exe")
|
||||
if (CMAKE_CROSSCOMPILING)
|
||||
set(_PIP_FP_DP)
|
||||
endif()
|
||||
endif()
|
||||
#message("FIND \"${__ext}\" -> ${_PIP_BINDIR}")
|
||||
find_program(PIP_CMG pip_cmg${__ext} HINTS ${_PIP_BINDIR} ${_PIP_FP_DP})
|
||||
find_program(PIP_RC pip_rc${__ext} HINTS ${_PIP_BINDIR} ${_PIP_FP_DP})
|
||||
find_program(PIP_DEPLOY_TOOL deploy_tool${__ext} HINTS ${_PIP_BINDIR} ${_PIP_FP_DP})
|
||||
if (NOT PIP_LIBRARY)
|
||||
message(FATAL_ERROR "Can`t find PIP library!")
|
||||
endif()
|
||||
|
||||
Reference in New Issue
Block a user