Skip to content

Commit 3c0d383

Browse files
committed
Conditionally set long build paths on linux only
1 parent ad6148e commit 3c0d383

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

test/test.cmake

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -116,10 +116,13 @@ function(configure_dir DIR)
116116
cmake_parse_arguments(PARSE "${options}" "${oneValueArgs}" "${multiValueArgs}" ${ARGN})
117117

118118
string(RANDOM BUILD_RAND)
119-
set(BUILD_DIR
120-
${BUILDS_DIR}/${BUILD_RAND}/longer_pathname_so_that_rpms_can_support_packaging_the_debug_info_for_all_os_profiles/src/out/some-os-version/version/build/rocm-cmake/build
121-
)
122-
# set(BUILD_DIR ${BUILDS_DIR}/${BUILD_RAND})
119+
if(WIN32)
120+
set(BUILD_DIR ${BUILDS_DIR}/${BUILD_RAND})
121+
else()
122+
set(BUILD_DIR
123+
${BUILDS_DIR}/${BUILD_RAND}/longer_pathname_so_that_rpms_can_support_packaging_the_debug_info_for_all_os_profiles/src/out/some-os-version/version/build/rocm-cmake/build
124+
)
125+
endif()
123126
if(NOT EXISTS ${BUILD_DIR})
124127
file(MAKE_DIRECTORY ${BUILD_DIR})
125128
endif()

0 commit comments

Comments
 (0)