We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
cmake
Describe the bug Specifying shell32.lib as a library works with CMake on Windows
shell32.lib
To Reproduce
project('cmake_install_files', ['c', 'cpp']) cm = import('cmake') cm_opts = cm.subproject_options() sub_pro = cm.subproject('subproj', options: cm_opts) prefix = get_option('prefix') explicit_libs = sub_pro.dependency('explicit_libs') exe1 = executable('main', ['main.cpp'], dependencies: [explicit_libs]) test('test1', exe1)
cmake_minimum_required(VERSION 3.5) project(subdir) set (CMAKE_CXX_STANDARD 14) add_library(explicit_libs INTERFACE) if(WIN32) target_link_libraries(explicit_libs INTERFACE shell32.lib) endif()
Expected behavior Do not add shell32.lib.lib as library
shell32.lib.lib
The text was updated successfully, but these errors were encountered:
Successfully merging a pull request may close this issue.
Describe the bug
Specifying
shell32.lib
as a library works with CMake on WindowsTo Reproduce
Expected behavior
Do not add
shell32.lib.lib
as libraryThe text was updated successfully, but these errors were encountered: