cmake: Fix policy check.
authorAndreas Schneider <asn@samba.org>
Fri, 25 Apr 2014 11:59:00 +0000 (13:59 +0200)
committerAndreas Schneider <asn@samba.org>
Fri, 25 Apr 2014 11:59:42 +0000 (13:59 +0200)
src/CMakeLists.txt

index 795b98d7d88dc7dc80fffcc407b99de3ecfd4edb..36b05a8e94de2aaf423d4ae596cb789206eecbf7 100644 (file)
@@ -22,7 +22,7 @@ install(
 )
 
 # This needs to be at the end
-if (CMAKE_VERSION VERSION_GREATER 2.8.13)
+if (POLICY CMP0026)
     cmake_policy(SET CMP0026 OLD)
 endif()
 get_target_property(NWRAP_LOCATION nss_wrapper LOCATION)