mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-15 13:49:01 +08:00
37 lines
1.3 KiB
Diff
37 lines
1.3 KiB
Diff
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
|
index 9be54f3..5656d03 100644
|
|
--- a/CMakeLists.txt
|
|
+++ b/CMakeLists.txt
|
|
@@ -139,7 +139,11 @@ endif()
|
|
|
|
if(MINGW OR (NOT WIN32))
|
|
find_package(directxmath CONFIG REQUIRED)
|
|
+ target_link_libraries(${PROJECT_NAME} PUBLIC Microsoft::DirectXMath)
|
|
+
|
|
find_package(directx-headers CONFIG REQUIRED)
|
|
+ target_link_libraries(${PROJECT_NAME} PUBLIC Microsoft::DirectX-Headers)
|
|
+ target_compile_definitions(${PROJECT_NAME} PUBLIC USING_DIRECTX_HEADERS)
|
|
else()
|
|
find_package(directxmath CONFIG QUIET)
|
|
find_package(directx-headers CONFIG QUIET)
|
|
@@ -147,13 +151,13 @@ endif()
|
|
|
|
if(directxmath_FOUND)
|
|
message(STATUS "Using DirectXMath package")
|
|
- target_link_libraries(${PROJECT_NAME} PUBLIC Microsoft::DirectXMath)
|
|
+ target_link_libraries(${PROJECT_NAME} PRIVATE Microsoft::DirectXMath)
|
|
endif()
|
|
|
|
if(directx-headers_FOUND)
|
|
message(STATUS "Using DirectX-Headers package")
|
|
- target_link_libraries(${PROJECT_NAME} PUBLIC Microsoft::DirectX-Headers)
|
|
- target_compile_definitions(${PROJECT_NAME} PUBLIC USING_DIRECTX_HEADERS)
|
|
+ target_link_libraries(${PROJECT_NAME} PRIVATE Microsoft::DirectX-Headers)
|
|
+ target_compile_definitions(${PROJECT_NAME} PRIVATE USING_DIRECTX_HEADERS)
|
|
endif()
|
|
|
|
if(ENABLE_USE_EIGEN)
|
|
--
|
|
2.47.0.vfs.0.3
|
|
|