Skip to content

GEODE-6054: build with vs 2017#407

Closed
mmartell wants to merge 8 commits intoapache:developfrom
pdxcodemonkey:GEODE-6054-build-with-VS-2017
Closed

GEODE-6054: build with vs 2017#407
mmartell wants to merge 8 commits intoapache:developfrom
pdxcodemonkey:GEODE-6054-build-with-VS-2017

Conversation

@mmartell
Copy link
Copy Markdown
Contributor

No description provided.

Ernie and others added 4 commits November 20, 2018 15:11
Co-authored-by: Ernest Burghardt <eburghardt@pivotal.io>
Co-authored-by: Ernest Burghardt <eburghardt@pivotal.io>
Co-authored-by: Mike Martell <mmartell@pivotal.io>
Copy link
Copy Markdown
Contributor

@jake-at-work jake-at-work left a comment

Choose a reason for hiding this comment

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

The CMAKE_CXX_FLAGS and compile definitions added need to be addressed differently. See comments inline.

@mmartell
Copy link
Copy Markdown
Contributor Author

Thanks pivotal-jbarrett for a diligent review! All changes have been implemented.

@jake-at-work
Copy link
Copy Markdown
Contributor

jake-at-work commented Nov 22, 2018

Can you explain why you are changing the exception handling mode? How is it interacting with the .NET library since this exception mode is not supported for /clr?

https://msdn.microsoft.com/en-us/library/ffkc918h.aspx

The following compiler options are not supported with /clr:
/EHsc and /EHs (/clr implies /EHa (see /EH (Exception Handling Model))

Strikes me that mixing exception modes is dangerous.

@mmartell
Copy link
Copy Markdown
Contributor Author

mmartell commented Nov 22, 2018 via email

@mmartell
Copy link
Copy Markdown
Contributor Author

mmartell commented Nov 22, 2018 via email

@mmartell
Copy link
Copy Markdown
Contributor Author

Reverted the change to a different exception model. All issues addressed with latest commit.

endif()

if(WIN32)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -m64 /D_SILENCE_TR1_NAMESPACE_DEPRECATION_WARNING")
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Why -m64 here?

The /D would be handled in a target definitions call and not cxx flags.

project(framework LANGUAGES CXX)

#IF(MSVC)
# SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /EHsc")
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Delete

)

#IF(MSVC)
# SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /EHsc")
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Delete

- No longer need the D_SILENCE_TR1_NAMESPACE_DEPRECATION_WARNING workaround for VS 2017
@echobravopapa
Copy link
Copy Markdown

@mmartell if this has stalled you might consider closing the PR until ready for review again...

set( DEPENDENCIES_${PROJECT_NAME}_DIR ${${PROJECT_NAME}_BINARY_DIR} PARENT_SCOPE)

if(MSVC)
set(CMAKE_STATIC_LIBRARY_SUFFIX "$<$<CONFIG:Debug>:d>${CMAKE_STATIC_LIBRARY_SUFFIX}")
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Format

@mmartell
Copy link
Copy Markdown
Contributor Author

This is being replaced by PR #411.

@mmartell mmartell closed this Nov 28, 2018
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

Successfully merging this pull request may close these issues.

3 participants