Index: bindings/python/stp/CMakeLists.txt
--- bindings/python/stp/CMakeLists.txt.orig
+++ bindings/python/stp/CMakeLists.txt
@@ -21,7 +21,7 @@
 # -----------------------------------------------------------------------------
 # Setup python module in build directory
 # -----------------------------------------------------------------------------
-get_target_property(LIBSTP_PATH libstp LOCATION)
+set(LIBSTP_PATH $<TARGET_FILE:libstp>)
 configure_file(library_path.py.in library_path.py @ONLY)
 
 # Copy rest of files to build directory
@@ -58,7 +58,7 @@ endif()
 install(FILES stp.py __init__.py DESTINATION "${PYTHON_LIB_INSTALL_DIR}/stp")
 
 # Generate and install file describing install location of stp shared library
-get_target_property(LIBSTP_LOCATAION libstp LOCATION) # This the full path in the build directory
+set(LIBSTP_LOCATAION $<TARGET_FILE:libstp>)
 get_filename_component(LIBSTP_FILENAME "${LIBSTP_LOCATAION}" NAME)
 set(LIBSTP_PATH ${CMAKE_INSTALL_PREFIX}/lib/${LIBSTP_FILENAME}) # FIXME: This is also set in libstp/CMakeLists.txt which could be fragile
 
