Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix cmake target export when installing both Release and Debug config on Windows #206

Merged
merged 1 commit into from
Sep 18, 2020

Conversation

matthieucoquet
Copy link
Contributor

Before the fix, the library was always installed in lib/openxr_loader.lib. If we tried to installed both Release and Debug, one will overwrite the other, resulting in linking error during application compilation.

The fix is to install the debug lib to another file. With this fix, the debug static lib will be at lib/Debug/openxr_loader.lib. For dll, it will be installed in bin/Debug/openxr_loader.dll.

I tested for both static and dynamic libraries.

Copy link
Contributor

@rpavlik rpavlik left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah, that's a nice solution to that problem - I like it better than the libname suffix thing. Much less intrusive.

Thanks!

@rpavlik rpavlik merged commit 10a2dea into KhronosGroup:master Sep 18, 2020
rpavlik added a commit that referenced this pull request Sep 26, 2020
This release features a number of new ratified KHR extensions, as well
as a new vendor extension.

-   Registry
    -   Add ratified XR_KHR_vulkan_enable2 Khronos extension. (internal
        MR 1627, internal issue 1249, internal issue 1283, internal MR
        1863)
    -   Add ratified XR_KHR_loader_init Khronos extension. (internal MR
        1744)
    -   Add ratified XR_KHR_loader_init_android Khronos extension.
        (internal MR 1744)
    -   Add ratified XR_KHR_composition_layer_equirect2 Khronos
        extension. (internal MR 1746)
    -   Add ratified XR_KHR_composition_layer_color_scale_bias Khronos
        extension. (internal MR 1762)
    -   Add XR_MSFT_controller_model extension. (internal MR 1832)
    -   Add vendor tag LIV for LIV Inc. (internal MR 1896)
    -   Fix structextends attribute of XrHandPoseTypeInfoMSFT.
        (OpenXR-SDK-Source/#207)
    -   schema: Update to permit aliases for commands and struct types.
        (Already supported by tooling.) (internal MR 1627)
-   SDK
    -   cmake: fix openxr_loader target export when installing both
        Release and Debug config on Windows. (OpenXR-SDK-Source/#206)
    -   hello_xr: Support the new XR_KHR_vulkan_enable2 extension.
        (internal MR 1627)
    -   hello_xr: Use the XR_KHR_loader_init_android extension on
        Android. (internal MR 1903)
    -   layers: Fix ARM builds by re-adding function attributes.
        (OpenXR-SDK-Source/#193)
-   Misc
    -   Clean up trailing whitespace, byte-order marks, anda ensure
        trailing newlines. (OpenXR-SDK-Source/#208)
rhabacker pushed a commit to rhabacker/OpenXR-SDK-Source that referenced this pull request Nov 16, 2022
This release features a number of new ratified KHR extensions, as well
as a new vendor extension.

-   Registry
    -   Add ratified XR_KHR_vulkan_enable2 Khronos extension. (internal
        MR 1627, internal issue 1249, internal issue 1283, internal MR
        1863)
    -   Add ratified XR_KHR_loader_init Khronos extension. (internal MR
        1744)
    -   Add ratified XR_KHR_loader_init_android Khronos extension.
        (internal MR 1744)
    -   Add ratified XR_KHR_composition_layer_equirect2 Khronos
        extension. (internal MR 1746)
    -   Add ratified XR_KHR_composition_layer_color_scale_bias Khronos
        extension. (internal MR 1762)
    -   Add XR_MSFT_controller_model extension. (internal MR 1832)
    -   Add vendor tag LIV for LIV Inc. (internal MR 1896)
    -   Fix structextends attribute of XrHandPoseTypeInfoMSFT.
        (OpenXR-SDK-Source/KhronosGroup#207)
    -   schema: Update to permit aliases for commands and struct types.
        (Already supported by tooling.) (internal MR 1627)
-   SDK
    -   cmake: fix openxr_loader target export when installing both
        Release and Debug config on Windows. (OpenXR-SDK-Source/KhronosGroup#206)
    -   hello_xr: Support the new XR_KHR_vulkan_enable2 extension.
        (internal MR 1627)
    -   hello_xr: Use the XR_KHR_loader_init_android extension on
        Android. (internal MR 1903)
    -   layers: Fix ARM builds by re-adding function attributes.
        (OpenXR-SDK-Source/KhronosGroup#193)
-   Misc
    -   Clean up trailing whitespace, byte-order marks, anda ensure
        trailing newlines. (OpenXR-SDK-Source/KhronosGroup#208)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants