cmake: Replace deprecated get_target_property()
authorAndreas Schneider <asn@samba.org>
Fri, 22 Jun 2018 07:08:28 +0000 (09:08 +0200)
committerAndreas Schneider <asn@samba.org>
Tue, 28 Aug 2018 09:46:21 +0000 (11:46 +0200)
Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
src/CMakeLists.txt

index de9f6d085467bd47bb20d8431326329e7a4eefc9..e95903ff7a95bdf6ca01d8ba293f4bac5d7bcb10 100644 (file)
@@ -21,9 +21,4 @@ install(
   ARCHIVE DESTINATION ${LIB_INSTALL_DIR}
 )
 
-# This needs to be at the end
-if (POLICY CMP0026)
-    cmake_policy(SET CMP0026 OLD)
-endif()
-get_target_property(RWRAP_LOCATION resolv_wrapper LOCATION)
-set(RESOLV_WRAPPER_LOCATION ${RWRAP_LOCATION} PARENT_SCOPE)
+set(RESOLV_WRAPPER_LOCATION "${CMAKE_CURRENT_BINARY_DIR}/${CMAKE_SHARED_LIBRARY_PREFIX}resolv_wrapper${CMAKE_SHARED_LIBRARY_SUFFIX}" PARENT_SCOPE)