Skip to content
Snippets Groups Projects
Commit cb1efc9a authored by Argyrios Kyrtzidis's avatar Argyrios Kyrtzidis
Browse files

[CMake] Don't install c-index-test when LLVM_INSTALL_TOOLCHAIN_ONLY=ON.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@253099 91177308-0d34-0410-b5e6-96231b3b80d8
parent 0ca8df12
No related branches found
No related tags found
No related merge requests found
...@@ -29,20 +29,22 @@ if (CLANG_HAVE_LIBXML) ...@@ -29,20 +29,22 @@ if (CLANG_HAVE_LIBXML)
target_link_libraries(c-index-test ${LIBXML2_LIBRARIES}) target_link_libraries(c-index-test ${LIBXML2_LIBRARIES})
endif() endif()
if(INTERNAL_INSTALL_PREFIX) if (NOT LLVM_INSTALL_TOOLCHAIN_ONLY)
set(INSTALL_DESTINATION "${INTERNAL_INSTALL_PREFIX}/bin") if(INTERNAL_INSTALL_PREFIX)
else() set(INSTALL_DESTINATION "${INTERNAL_INSTALL_PREFIX}/bin")
set(INSTALL_DESTINATION bin) else()
endif() set(INSTALL_DESTINATION bin)
endif()
install(TARGETS c-index-test install(TARGETS c-index-test
RUNTIME DESTINATION "${INSTALL_DESTINATION}" RUNTIME DESTINATION "${INSTALL_DESTINATION}"
COMPONENT c-index-test) COMPONENT c-index-test)
if (NOT CMAKE_CONFIGURATION_TYPES) # don't add this for IDE's. if (NOT CMAKE_CONFIGURATION_TYPES) # don't add this for IDE's.
add_custom_target(install-c-index-test add_custom_target(install-c-index-test
DEPENDS c-index-test DEPENDS c-index-test
COMMAND "${CMAKE_COMMAND}" COMMAND "${CMAKE_COMMAND}"
-DCMAKE_INSTALL_COMPONENT=c-index-test -DCMAKE_INSTALL_COMPONENT=c-index-test
-P "${CMAKE_BINARY_DIR}/cmake_install.cmake") -P "${CMAKE_BINARY_DIR}/cmake_install.cmake")
endif()
endif() endif()
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment