Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Michael Adam <obnox@samba.org>
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)