-
Notifications
You must be signed in to change notification settings - Fork 144
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
For the God, don't destroy cplusplus project. #11
Comments
The new commit f0d9bcb could help. |
Good Job, Buddy. Good news, it works. only comment these lines: # set(CMAKE_CXX_FLAGS "${CMAKE_C_FLAGS}")
# set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_C_FLAGS_DEBUG}")
# set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_C_FLAGS_RELEASE}")
# set(CMAKE_CXX_FLAGS_MINSIZEREL "${CMAKE_C_FLAGS_MINSIZEREL}")
# set(CMAKE_CXX_FLAGS_RELWITHDEBINFO "${CMAKE_C_FLAGS_RELWITHDEBINFO}") |
Another issue with cmake/MSVCRuntime.cmake: it replaces /Ob0 with /Ob2 globally! Two questions:
|
You can fork it and make all changes you need for your project. |
But why would you change /Ob0 to /Ob2 in Debug mode? Also, would you accept a PR that left the /Ob0 there in Debug mode? |
For the God, don't destroy cplusplus project.
My job is intergrate openssl to the c++ project of our team by cmake , and I found your repo, this repo.
Really nice repo.
But when I found the code in openssl-cmake/CMakeLists.txt:
MSVCRuntime.cmake
this file change all the C++ compiler options, make my project don't understand c++ syntax like:syntax error: identifier '...'
Finally, I remove these two lines and get everything well.
include( MSVCRuntime ) configure_msvc_runtime()
Wish you consider about it.
For detail
snapshot
my wiki
The text was updated successfully, but these errors were encountered: