Skip to content

Commit

Permalink
Remove backwards compatibility files on Windows (ROCm#254)
Browse files Browse the repository at this point in the history
  • Loading branch information
lawruble13 authored Sep 30, 2022
1 parent 727842a commit 0b1fecf
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ if(BUILD_BENCHMARKS)
endif()

#Create header wrapper for backward compatibility
if(BUILD_FILE_REORG_BACKWARD_COMPATIBILITY)
if(BUILD_FILE_REORG_BACKWARD_COMPATIBILITY AND NOT WIN32)
rocm_wrap_header_dir(
${CMAKE_SOURCE_DIR}/thrust
PATTERNS "*.h" "*.inl" "*.cuh" "*.hpp"
Expand Down
4 changes: 2 additions & 2 deletions thrust/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ configure_file(
)

#Creat wrapper for generated version file
if(BUILD_FILE_REORG_BACKWARD_COMPATIBILITY)
if(BUILD_FILE_REORG_BACKWARD_COMPATIBILITY AND NOT WIN32)
rocm_wrap_header_file(
"rocthrust_version.hpp"
HEADER_LOCATION include/thrust
Expand Down Expand Up @@ -65,7 +65,7 @@ rocm_install(

#Install the wrapper to rocthrust folder.
#So wrapper would be in /opt/rocm-xxx/rocthrust/include/thrust
if (BUILD_FILE_REORG_BACKWARD_COMPATIBILITY)
if (BUILD_FILE_REORG_BACKWARD_COMPATIBILITY AND NOT WIN32)
rocm_install(
DIRECTORY
"${PROJECT_BINARY_DIR}/rocthrust/wrapper/"
Expand Down

0 comments on commit 0b1fecf

Please sign in to comment.