From 78922ff9e7aea7384643b5734eec6fa6b163575b Mon Sep 17 00:00:00 2001 From: Chuck Walbourn Date: Mon, 2 Dec 2024 15:07:29 -0800 Subject: [PATCH] CMake update to avoid directxmath subdir for include (#224) --- CMakeLists.txt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index d10adc1..7041f14 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -30,7 +30,7 @@ add_library(${PROJECT_NAME} INTERFACE) target_include_directories(${PROJECT_NAME} INTERFACE $ - $) + $) target_compile_features(${PROJECT_NAME} INTERFACE cxx_std_11) @@ -61,7 +61,7 @@ install(EXPORT ${PROJECT_NAME}-targets DESTINATION ${CMAKE_INSTALL_DATAROOTDIR}/${PACKAGE_NAME}) install(FILES ${LIBRARY_HEADERS} - DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/directxmath) + DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}) install(FILES ${CMAKE_CURRENT_BINARY_DIR}/${PACKAGE_NAME}-config.cmake @@ -71,7 +71,7 @@ install(FILES # Create pkg-config file include(build/JoinPaths.cmake) # from: https://github.com/jtojnar/cmake-snips#concatenating-paths-when-building-pkg-config-files -join_paths(DIRECTXMATH_INCLUDEDIR_FOR_PKG_CONFIG "\${prefix}" "${CMAKE_INSTALL_INCLUDEDIR}/directxmath") +join_paths(DIRECTXMATH_INCLUDEDIR_FOR_PKG_CONFIG "\${prefix}" "${CMAKE_INSTALL_INCLUDEDIR}") join_paths(DIRECTXMATH_LIBDIR_FOR_PKG_CONFIG "\${prefix}" "${CMAKE_INSTALL_LIBDIR}") configure_file(