Skip to content

Commit fc7c7c2

Browse files
authored
fix(cmake): Use CMAKE_BINARY_DIR for installation path (#1510)
Replace relative path with CMAKE_BINARY_DIR in Install.cmake to ensure consistent installation behavior across different platforms. fix fail in macOS.
1 parent c39f8d4 commit fc7c7c2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Install/Install.cmake

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
include(GNUInstallDirs)
22

33
if(CMAKE_INSTALL_PREFIX_INITIALIZED_TO_DEFAULT)
4-
set(CMAKE_INSTALL_PREFIX "./install/" CACHE PATH "..." FORCE)
4+
set(CMAKE_INSTALL_PREFIX "${CMAKE_BINARY_DIR}/install" CACHE PATH "..." FORCE)
55
endif()
66

77
function(install_targets)

0 commit comments

Comments
 (0)