cmake: Replace deprecated get_target_property()
authorAndreas Schneider <asn@samba.org>
Fri, 22 Jun 2018 06:56:02 +0000 (08:56 +0200)
committerAndreas Schneider <asn@samba.org>
Mon, 13 Aug 2018 10:04:59 +0000 (12:04 +0200)
Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Michael Adam <obnox@samba.org>
src/CMakeLists.txt

index 9dbfb75df95561d178dd40751370dd2047148d5c..b5a0604c04da3ee848e9e701b2828b7e235ffcac 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(UWRAP_LOCATION uid_wrapper LOCATION)
-set(UID_WRAPPER_LOCATION ${UWRAP_LOCATION} PARENT_SCOPE)
+set(UID_WRAPPER_LOCATION "${CMAKE_CURRENT_BINARY_DIR}/${CMAKE_SHARED_LIBRARY_PREFIX}uid_wrapper${CMAKE_SHARED_LIBRARY_SUFFIX}" PARENT_SCOPE)