Skip to content

Commit d209d13

Browse files
committed
[libcxx] [cmake] Fix cmake_path(ABSOLUTE_PATH) for empty CMAKE_INSTALL_PREFIX
This should hopefully fix the issue brought up at llvm#85756 (comment).
1 parent 9ebd329 commit d209d13

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

libcxx/modules/CMakeLists.txt

+2-2
Original file line numberDiff line numberDiff line change
@@ -207,10 +207,10 @@ add_custom_target(generate-cxx-modules
207207
# Use the relative path between the installation and the module in the json
208208
# file. This allows moving the entire installation to a different location.
209209
cmake_path(ABSOLUTE_PATH LIBCXX_INSTALL_LIBRARY_DIR
210-
BASE_DIRECTORY ${CMAKE_INSTALL_PREFIX}
210+
BASE_DIRECTORY "${CMAKE_INSTALL_PREFIX}"
211211
OUTPUT_VARIABLE ABS_LIBRARY_DIR)
212212
cmake_path(ABSOLUTE_PATH LIBCXX_INSTALL_MODULES_DIR
213-
BASE_DIRECTORY ${CMAKE_INSTALL_PREFIX}
213+
BASE_DIRECTORY "${CMAKE_INSTALL_PREFIX}"
214214
OUTPUT_VARIABLE ABS_MODULES_DIR)
215215
file(RELATIVE_PATH LIBCXX_MODULE_RELATIVE_PATH
216216
${ABS_LIBRARY_DIR}

0 commit comments

Comments
 (0)