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

Supress msvc dll exported interface warning #263

Merged
merged 6 commits into from
May 29, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/Manager.hh
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
#include <memory>
#include <string>

// #include <ignition/common/SuppressWarning.hh>
#include <ignition/utils/SuppressWarning.hh>
Copy link
Contributor

Choose a reason for hiding this comment

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

You need to link against ignition-utils${IGN_UTILS_VER}::core for this to work. You'd add that in

${BACKWARD_LIBRARIES}

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Just added it with 7ba196f. But I think the cmd code copies back the Manager.hh source into the cmd folder and then the library is not linked there.

Should I link it there:

target_link_libraries(ign PUBLIC
?

Copy link
Contributor

Choose a reason for hiding this comment

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

Ah, we'll need to link ignition-utils there as well then.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Manager.hh seems to be used in various places, I had to add a few extra link includes, CI seems to be happy now.


#include <ignition/launch/Export.hh>

Expand Down Expand Up @@ -52,9 +52,9 @@ namespace ignition
public: bool Stop();

/// \brief Private data pointer.
// IGN_COMMON_WARN_IGNORE__DLL_INTERFACE_MISSING
IGN_UTILS_WARN_IGNORE__DLL_INTERFACE_MISSING
private: std::unique_ptr<ManagerPrivate> dataPtr;
// IGN_COMMON_WARN_IGNORE__DLL_INTERFACE_MISSING
IGN_UTILS_WARN_RESUME__DLL_INTERFACE_MISSING
};
}
}
Expand Down
Loading