diff options
Diffstat (limited to 'lib/Headers/CMakeLists.txt')
-rw-r--r-- | lib/Headers/CMakeLists.txt | 17 |
1 files changed, 10 insertions, 7 deletions
diff --git a/lib/Headers/CMakeLists.txt b/lib/Headers/CMakeLists.txt index 8be33b7..2da1a28 100644 --- a/lib/Headers/CMakeLists.txt +++ b/lib/Headers/CMakeLists.txt @@ -12,6 +12,7 @@ set(files fmaintrin.h immintrin.h iso646.h + Intrin.h limits.h lzcntintrin.h mm3dnow.h @@ -23,6 +24,7 @@ set(files prfchwintrin.h rdseedintrin.h rtmintrin.h + shaintrin.h smmintrin.h stdalign.h stdarg.h @@ -30,6 +32,7 @@ set(files stddef.h stdint.h stdnoreturn.h + tbmintrin.h tgmath.h tmmintrin.h varargs.h @@ -44,13 +47,13 @@ set(files module.map ) -set(output_dir ${LLVM_BINARY_DIR}/lib/clang/${CLANG_VERSION}/include) +set(output_dir ${CMAKE_LIBRARY_OUTPUT_DIRECTORY}/clang/${CLANG_VERSION}/include) # If we are in an IDE that has a configuration directory, we need to # create a second copy of the headers so that 'clang' can find them if # it's run from the build directory. if(MSVC_IDE OR XCODE) - set(other_output_dir ${LLVM_BINARY_DIR}/bin/lib/clang/${CLANG_VERSION}/include) + set(other_output_dir ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/lib/clang/${CLANG_VERSION}/include) endif() # Generate arm_neon.h @@ -96,11 +99,11 @@ add_custom_target(clang-headers ALL DEPENDS ${out_files}) set_target_properties(clang-headers PROPERTIES FOLDER "Misc") if (other_output_dir) - if(UNIX) - add_custom_command(TARGET clang-headers POST_BUILD - COMMAND ${CMAKE_COMMAND} -E make_directory "${LLVM_BINARY_DIR}/lib/${CMAKE_CFG_INTDIR}" - COMMAND ${CMAKE_COMMAND} -E create_symlink "${LLVM_BINARY_DIR}/bin/lib/clang" "${LLVM_BINARY_DIR}/lib/${CMAKE_CFG_INTDIR}/clang") - endif() + if(UNIX) + add_custom_command(TARGET clang-headers POST_BUILD + COMMAND ${CMAKE_COMMAND} -E make_directory "${CMAKE_LIBRARY_OUTPUT_DIRECTORY}/${CMAKE_CFG_INTDIR}" + COMMAND ${CMAKE_COMMAND} -E create_symlink "${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/lib/clang" "${CMAKE_LIBRARY_OUTPUT_DIRECTORY}/${CMAKE_CFG_INTDIR}/clang") + endif() endif () install(FILES ${files} ${output_dir}/arm_neon.h |