GithubHelp home page GithubHelp logo

Comments (3)

PhilipHazel avatar PhilipHazel commented on July 17, 2024 1

I am not a Windows user so have no way of testing this. However, it seems obvious from your first patch that the file names were incorrectly set up when PCRE2 was forked from PCRE1. Looks like nobody has tried to use this in the last seven years! I have applied your changes and committed the patch.

I haven't done anything about your second message because you said "something long these lines", as though it might be incomplete or untested. If you can provide a known working patch, I will apply it.

from pcre2.

emmenlau avatar emmenlau commented on July 17, 2024

I just wanted to add that its also possible to generate and store pdb files for static library builds. However requires that the COMPILE_PDB_NAME is set in cmake for the target. So something along those lines would need to be added in addition to the install command from above, too:

if (MSVC AND NOT BUILD_SHARED_LIBS)
    # Set the output name for debugger files, otherwise they are not generated:
    set_target_properties(${PROJECT_NAME}
        PROPERTIES
        COMPILE_PDB_NAME_DEBUG ${PROJECT_NAME}
        COMPILE_PDB_NAME_RELEASE ${PROJECT_NAME}
        COMPILE_PDB_NAME_MINSIZEREL ${PROJECT_NAME}
        COMPILE_PDB_NAME_RELWITHDEBINFO ${PROJECT_NAME})
endif()

Then the install command should work for the static and the shared case.

PS: I'm assuming here that the library target is called ${PROJECT_NAME}. Otherwise please replace this with the library target(s).

from pcre2.

emmenlau avatar emmenlau commented on July 17, 2024

Thanks a lot for applying the patch, it's really appreciated! I think its fine not to support the static case, for now, so I'll close this issue? We can open a new one if the request comes up.

from pcre2.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.