[Openmp-commits] [openmp] f09f58d - [OpenMP] [OMPD] Fix CMake install command

Yuanfang Chen via Openmp-commits openmp-commits at lists.llvm.org
Wed Oct 25 20:04:20 PDT 2023


Author: Yuanfang Chen
Date: 2023-10-26T03:02:53Z
New Revision: f09f58d0f2a981d8d578c66fbd1f27709ee6dfda

URL: https://github.com/llvm/llvm-project/commit/f09f58d0f2a981d8d578c66fbd1f27709ee6dfda
DIFF: https://github.com/llvm/llvm-project/commit/f09f58d0f2a981d8d578c66fbd1f27709ee6dfda.diff

LOG: [OpenMP] [OMPD] Fix CMake install command

https://cmake.org/cmake/help/latest/command/install.html
"If a relative path is given it is interpreted relative to the value of the CMAKE_INSTALL_PREFIX variable."

Added: 
    

Modified: 
    openmp/libompd/gdb-plugin/CMakeLists.txt

Removed: 
    


################################################################################
diff  --git a/openmp/libompd/gdb-plugin/CMakeLists.txt b/openmp/libompd/gdb-plugin/CMakeLists.txt
index a60f9419db19151..20cb4680e4cbfa2 100644
--- a/openmp/libompd/gdb-plugin/CMakeLists.txt
+++ b/openmp/libompd/gdb-plugin/CMakeLists.txt
@@ -36,5 +36,5 @@ target_link_libraries (ompdModule ${CMAKE_DL_LIBS})
 set_target_properties (ompdModule PROPERTIES PREFIX "")
 set_target_properties (ompdModule PROPERTIES LIBRARY_OUTPUT_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}/python-module/ompd/")
 
-install(DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/python-module/ompd DESTINATION ${CMAKE_INSTALL_PREFIX}/share/gdb/python/ PATTERN ompdModule.so PERMISSIONS OWNER_READ WORLD_READ GROUP_READ OWNER_EXECUTE GROUP_EXECUTE WORLD_EXECUTE)
+install(DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/python-module/ompd DESTINATION share/gdb/python/ PATTERN ompdModule.so PERMISSIONS OWNER_READ WORLD_READ GROUP_READ OWNER_EXECUTE GROUP_EXECUTE WORLD_EXECUTE)
 


        


More information about the Openmp-commits mailing list