DkSDKMSYS2

DkSDKMSYS2_ResolveMSYS2

Find and set the location of a MSYS2 installation.

DkSDKMSYS2_ResolveMSYS2(
  [REQUIRED_ON_WINDOWS]
)

For Windows, the search is conducted in order of preference:

  1. CMake variable DKSDK_MSYS2_DIR

  2. Environment variable DiskuvOCamlMSYS2Dir

  3. DkML's MSYS2 by locating its dkmlvars.cmake script in the standard DkML location

  4. At this point, a message(FATAL_ERROR) will be raised if REQUIRED_ON_WINDOWS flag was used

Result Variables

DKSDKMSYS2_RESOLVED_DIR

The full path to the MSYS2 installation.

Example: C:/msys64

For non-Windows platforms, this variable will be empty.

DKSDKMSYS2_RESOLVED_NATIVEDIR

The full path, in native format (ex. C:\\msys64 on Windows), of the MSYS2 installation.

For non-Windows platforms, this variable will be empty.