diff --git a/CMakeLists.txt b/CMakeLists.txt index 4c46b2f5..b28d1d79 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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()