r295592 - clang/CMakeLists.txt: Rework r294954 -- use file(TO_CMAKE_PATH).

NAKAMURA Takumi via cfe-commits cfe-commits at lists.llvm.org
Sat Feb 18 19:17:31 PST 2017


Author: chapuni
Date: Sat Feb 18 21:17:31 2017
New Revision: 295592

URL: http://llvm.org/viewvc/llvm-project?rev=295592&view=rev
Log:
clang/CMakeLists.txt: Rework r294954 -- use file(TO_CMAKE_PATH).

Modified:
    cfe/trunk/CMakeLists.txt

Modified: cfe/trunk/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/CMakeLists.txt?rev=295592&r1=295591&r2=295592&view=diff
==============================================================================
--- cfe/trunk/CMakeLists.txt (original)
+++ cfe/trunk/CMakeLists.txt Sat Feb 18 21:17:31 2017
@@ -59,7 +59,7 @@ if( CMAKE_SOURCE_DIR STREQUAL CMAKE_CURR
 
   # Normalize LLVM_CMAKE_PATH. --cmakedir might contain backslashes.
   # CMake assumes slashes as PATH.
-  get_filename_component(LLVM_CMAKE_PATH ${LLVM_CONFIG_CMAKE_PATH} ABSOLUTE)
+  file(TO_CMAKE_PATH ${LLVM_CONFIG_CMAKE_PATH} LLVM_CMAKE_PATH)
 
   find_program(LLVM_TABLEGEN_EXE "llvm-tblgen" ${LLVM_TOOLS_BINARY_DIR}
     NO_DEFAULT_PATH)




More information about the cfe-commits mailing list