Changed the method by which the cmake version was being compared.

This commit is contained in:
Ward Fisher 2015-10-20 16:20:04 +00:00
parent 6341067733
commit 48fedd0d19

View File

@ -109,7 +109,7 @@ SET_TARGET_PROPERTIES(netcdf PROPERTIES
# https://github.com/Unidata/netcdf-c/issues/135
# for more information.
###
IF(${CMAKE_VERSION} LESS 2.8.12)
IF(${CMAKE_VERSION} VERSION_LESS 2.8.12)
INSTALL(
TARGETS netcdf EXPORT netCDFTargets
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR} COMPONENT libraries