Skip to content

Commit a90773a

Browse files
mstorsjocopybara-github
authored andcommitted
[libcxx] [cmake] Fix cmake_path(ABSOLUTE_PATH) for empty CMAKE_INSTALL_PREFIX
This should hopefully fix the issue brought up at llvm/llvm-project#85756 (comment). NOKEYCHECK=True GitOrigin-RevId: d209d1340b99d4fbd325dffb5e13b757ab8264ea
1 parent dd71911 commit a90773a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

modules/CMakeLists.txt

Lines changed: 2 additions & 2 deletions
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)