Skip to content

Commit 10a2dea

Browse files
authored
Merge pull request #206 from matthieucoquet/cmake_export_debug
Fix cmake target export when installing both Release and Debug config on Windows
2 parents 6dee6e2 + ba68a87 commit 10a2dea

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
cmake: fix openxr_loader target export when installing both Release and Debug config on Windows.

src/loader/CMakeLists.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -240,9 +240,9 @@ endif()
240240

241241
install(
242242
TARGETS openxr_loader EXPORT openxr_loader_export
243-
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
244-
ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
245-
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
243+
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}$<$<CONFIG:Debug>:/Debug>
244+
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}$<$<CONFIG:Debug>:/Debug>
245+
ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}$<$<CONFIG:Debug>:/Debug>
246246
)
247247

248248
export(

0 commit comments

Comments
 (0)