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

Could not find advapi32_LIBRARY using the following names: advapi32 #183

Open
L-Super opened this issue Nov 5, 2023 · 2 comments
Open

Comments

@L-Super
Copy link

L-Super commented Nov 5, 2023

env:

  • Windows 11
  • Qt 6.5.2 MinGW (13.1.0)
CMake Error at third_party/SingleApplication/CMakeLists.txt:41 (find_library):
  Could not find advapi32_LIBRARY using the following names: advapi32

Maybe we don't need advapi32 on MinGW.

@SZinedine
Copy link
Contributor

Same problem here. On Windows 10, Qt 5.15.2 MSVC 16 (2019).

It actually compiles once I change the cmake code into:

if(WIN32)
    target_link_libraries(${PROJECT_NAME} PRIVATE advapi32)
endif()

@itay-grudev
Copy link
Owner

Feel free to submit a PR.

SZinedine added a commit to SZinedine/SingleApplication that referenced this issue Feb 4, 2024
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

No branches or pull requests

3 participants