Open
Conversation
* Add options to use glog and gflags * glog_DIR and gflags_DIR are required to set the directories containing CMake configuration files.
* Add CMake options to build dynamic/static libraries * Dynamic library (DLL) with dynamically linked CRT * Static library with dynamically linked CRT * Static library with statically linked CRT
* Removed additional modification from the original master.
* Changed `contour` class to template class * To avoid the following error when compiling with MSVC : ``` 3>cmaes.lib(errstats.obj) : error LNK2005: "class std::basic_ostream<char,struct std::char_traits<char> > & __cdecl libcmaes::operator<<(class std::basic_ostream<char,struct std::char_traits<char> > &,class libcmaes::contour const &)" (??6libcmaes@@YAAEAV?$basic_ostream@DU?$char_traits@D@std@@@std@@AEAV12@AEBVcontour@0@@z) already defined in test-functions.obj 3>.\build\tests\Release\test-functions.exe : fatal error LNK1169: one or more multiply defined symbols found 3>Done building project "test-functions.vcxproj" -- FAILED. ``` * `contour` is now `contour_<0>`. No need to change the existing code.
* `M_PI` etc. are not defined by default in MSVC. * The `_USE_MATH_DEFINES` macro is required to define them.
Author
|
I found that |
Contributor
|
@tsadakane I have a running build with conan on windows in #234 if you want to use that |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Please forgive me for opening a similar PR even though @chobby has opened PR #246 for Issue #245.
This PR includes
You can build and test by the following steps:
"build_libcmaes.sh" is...
build_libcmaes.shbuild_libcmaes.shtest-functions --allwill run at the end.