Skip to content

Commit

Permalink
[HIPIFY][package][cmake][Linux][fix] `FILE_REORG_BACKWARD_COMPATIBILI…
Browse files Browse the repository at this point in the history
…TY` is Linux-only option
  • Loading branch information
emankov committed Jul 11, 2023
1 parent 16103b7 commit 958bd24
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -180,14 +180,14 @@ if (NOT HIPIFY_CLANG_TESTS_ONLY)
PATTERN "openmp_wrappers" EXCLUDE)
endif()

option(FILE_REORG_BACKWARD_COMPATIBILITY "Enable File Reorg with backward compatibility" ON)

if(UNIX)
# Get rid of any RPATH definations already.
set_target_properties(hipify-clang PROPERTIES INSTALL_RPATH "")
# Set RPATH for the binary.
set_target_properties(hipify-clang PROPERTIES LINK_FLAGS "-Wl,--enable-new-dtags -Wl,--rpath,$ORIGIN/../lib" )

option(FILE_REORG_BACKWARD_COMPATIBILITY "Enable File Reorg with backward compatibility" ON)

if(FILE_REORG_BACKWARD_COMPATIBILITY)
include(hipify-backward-compat.cmake)
endif()
Expand Down

0 comments on commit 958bd24

Please sign in to comment.