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 a bug in the CMake script. #221

Merged
merged 1 commit into from
Jul 20, 2023
Merged

Commits on Jul 20, 2023

  1. Fix a bug in the CMake script.

    PR [open-quantum-safe#207] introduced a check for setting the right suffix to the library,
    depending on the target OS:
    
    https://github.com/open-quantum-safe/oqs-provider/blob/823f3178dd50eeb5febf29eb82680400c4d9e887/oqsprov/CMakeLists.txt#L61-L7://github.com/open-quantum-safe/oqs-provider/blob/823f3178dd50eeb5febf29eb82680400c4d9e887/oqsprov/CMakeLists.txt#L61-L79
    
    However, mixed with PR [open-quantum-safe#201] and the `OQS_PROVIDER_BUILD_STATIC` option, the
    library may be suffixed with the wrong extension: we may end up with a static
    library named `oqsprovider.dylib`, even if it's an archive:
    
    ```shell
    $ cmake -GNinja \
        -DOQS_PROVIDER_BUILD_STATIC=ON \
        -B build
    $ cmake --build build
    $ file build/lib/oqsprovider.dylib
    build/lib/oqsprovider.dylib: current ar archive random library
    $ # ^ should be named `oqsprovider.a`!
    ```
    
    The check mentioned above is only relevant when oqsprovider is built as a module.
    
    This commit fixes this bug and introduces a check in the CircleCI jobs to verify
    that `oqsprovider.a` is actually produced.
    
    [open-quantum-safe#201](open-quantum-safe#201)
    [open-quantum-safe#207](open-quantum-safe#207)
    thb-sb committed Jul 20, 2023
    Configuration menu
    Copy the full SHA
    f0ede8c View commit details
    Browse the repository at this point in the history