cmake: Fix policy check.
authorAndreas Schneider <asn@samba.org>
Fri, 25 Apr 2014 11:57:38 +0000 (13:57 +0200)
committerAndreas Schneider <asn@samba.org>
Fri, 25 Apr 2014 12:26:57 +0000 (14:26 +0200)
Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Michael Adam <obnox@samba.org>
src/CMakeLists.txt

index 50ac9ad23f8688b891b9132150f7ff8c609e03b0..95a691fca826ebd24a80099e92962031b165b701 100644 (file)
@@ -23,7 +23,7 @@ set_target_properties(
 )
 
 # 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(SWRAP_LOCATION socket_wrapper LOCATION)