blob: e0a4b8d66ae1d9291a5c16d2a7a4b8df9de00494 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
|
commit 3b24ff660f83e18cadd3da272f182aaf8f98a755
Author: Liam Wrubleski <Liam.Wrubleski@amd.com>
Date: Mon Jan 24 13:49:52 2022 -0700
Revert symlinks
diff --git a/library/CMakeLists.txt b/library/CMakeLists.txt
index 17a8c4c..89322d8 100644
--- a/library/CMakeLists.txt
+++ b/library/CMakeLists.txt
@@ -60,27 +60,6 @@ rocm_install(
"${CMAKE_BINARY_DIR}/library/include"
)
-# Create symlinks
-if(WIN32)
- set(SYMLINK_COMMAND "file(COPY \${SRC} DESTINATION \${DEST_DIR})" )
-else()
- set(SYMLINK_COMMAND "execute_process(COMMAND ln -sf \${SRC_REL} \${DEST})" )
-endif()
-set(INSTALL_SYMLINK_COMMAND "
- set(SRC_DIR \$ENV{DESTDIR}\${CMAKE_INSTALL_PREFIX}/include/rocrand)
- file(GLOB_RECURSE FILES RELATIVE \${SRC_DIR} \${SRC_DIR}/*)
- foreach(FILE \${FILES})
- set(SRC \${SRC_DIR}/\${FILE})
- set(DEST \$ENV{DESTDIR}\${CMAKE_INSTALL_PREFIX}/rocrand/include/\${FILE})
- get_filename_component(DEST_DIR \${DEST} DIRECTORY)
- file(MAKE_DIRECTORY \${DEST_DIR})
- file(RELATIVE_PATH SRC_REL \${DEST_DIR} \${SRC})
- message(STATUS \"symlink: \${SRC_REL} -> \${DEST}\")
- ${SYMLINK_COMMAND}
- endforeach()
-")
-rocm_install(CODE "${INSTALL_SYMLINK_COMMAND}")
-
set(FORTRAN_SRCS_INSTALL_DIR "${CMAKE_INSTALL_PREFIX}/rocrand/src/fortran")
configure_file(
src/rocrand-fortran-config.cmake.in
|