It builds fine on MSVC, Linux gcc, LInux clang and Apple-clang, but has some issues with building on mingw@Linux.
These patches fix this:
add a CELERO_COMPILE_FPIC cmake option to build celero as a position independent library (or not). The default is ON. So there is no default change in behavior.
lower case all windows include as mingw-headers only has lower case include files. And most file systems on Linux are case sensitive. Also, fixed a #ifdef WIN32 to #ifdef _WIN32.
Install all files (libraries + archives) to ${PREFIX/lib. This is done because on mingw, the static library was installed in lib and the implib in lib/static.
The new install behavior is as follows:
Hello!
We're currently adding a build recipe for celero on conan-center-index at https://github.com/conan-io/conan-center-index/pull/3259.
It builds fine on MSVC, Linux gcc, LInux clang and Apple-clang, but has some issues with building on mingw@Linux.
These patches fix this:
CELERO_COMPILE_FPIC
cmake option to build celero as a position independent library (or not). The default isON
. So there is no default change in behavior.#ifdef WIN32
to#ifdef _WIN32
.${PREFIX/lib
. This is done because on mingw, the static library was installed inlib
and the implib inlib/static
. The new install behavior is as follows:lib/libcelero.a
+lib/libcelero.so
lib/libcelero.a
+lib/libcelero.dll.a
&bin/libcelero.dll
lib/celero.lib
+lib/celero.dll.lib
&bin/celero.dll