DKSDK_VERSION_MAJMIN

This read-only directory property reports the Major.Minor version of DkSDK.

The property value is compatible with if(x VERSION_GREATER_EQUAL 1.0.0) and similar comparisons.

Examples

  • 1.0

  • 0.9

Usage

get_directory_property(v DKSDK_VERSION_MAJMIN)
if(v VERSION_LESS 1.0)
  message(FATAL_ERROR "This project needs at least DkSDK 1.0")
endif()