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

c# release build errors #47

Open
MichaelWallace30 opened this issue May 9, 2017 · 1 comment
Open

c# release build errors #47

MichaelWallace30 opened this issue May 9, 2017 · 1 comment

Comments

@MichaelWallace30
Copy link
Owner

Cmake only adds the /clr option for debug mode. If building a release version just switch on /clr until a cmake solution is implemented.

@CheezBoiger
Copy link
Collaborator

CheezBoiger commented May 16, 2017

@MichaelWallace30
Try and add

  set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} /clr")
  set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} /clr")

into the C# module CMakeLists.txt file.

Also add in

#include <CommProto/debug/comms_debug.h>

inside C# module Comms.cc file. It's missing reference to COMM_DEBUG()

After that, you shouldn't need to do property setting to switch on /clr if you build release version.

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

2 participants