CMakeLists.txt


Log

Author Commit Date CI Message
Martin Mitas 19504cad 2019-04-29T22:24:23 Revert "Build: With gcc and clang, enforce -std=c90." This reverts commit 716b6ca4448318df900eb22bb7a31499a827d905. Rationale: snprintf() not available in C90, so -std=c90 causes warnings on Linux.
Martin Mitas 716b6ca4 2019-04-17T15:01:03 Build: With gcc and clang, enforce -std=c90. See #71. This forces us to be more conservative in the future code changes, and make us more friendly mainly to some embedded compilers who are often behind the current state of art. Fix also related warnings and errors, as provided by gcc 8.1.0.
Martin Mitas 7a6bf33c 2019-04-08T19:56:23 Bump version to 0.3.2
Martin Mitas 2670043f 2019-03-13T07:50:34 Bump version to 0.3.1
Martin Mitas 00a70fea 2019-02-10T22:59:49 Bump version to 0.3.0
Martin Mitas bfca107d 2019-02-08T09:23:20 Build: Allow again building MD4C as static lib. * On Windows, we build static lib by default, as there is no /usr/lib counterpart. * On other systems the shared lib is the default. * Use option BUILD_SHARED_LIBS to override it: $ cmake -DBUILD_SHARED_LIBS=ON path_to_root # to build shared lib $ cmake -DBUILD_SHARED_LIBS=OFF path_to_root # to build static lib
Lisandro Damián Nicanor Pérez Meyer 5f33d933 2019-02-07T15:54:25 Build md4c as a shared library. (#49) Build md4c as a shared library. - Define the current version in the main CMakeLists.txt, so it can be used within the project. - Define VERSION, SOVERSION and PUBLIC_HEADER as target properties. - Be able to install both libmd4c and md2html. - Create a pkg-config file. Fixes #48
Craig Barnes e6a51bd6 2018-07-12T03:37:09 Add "-Wall" to CFLAGS when using Clang as compiler See also: * https://cmake.org/cmake/help/v3.12/variable/CMAKE_LANG_COMPILER_ID.html * https://cmake.org/cmake/help/v3.12/variable/CMAKE_COMPILER_IS_GNUCC.html
Martin Mitas 17ad25ee 2017-08-03T11:59:25 CMakeLists.txt: Do not force -O2 in the release build. With newer gcc (7.1), -O3 and -O2 makes real difference in the resulted performance. On my Linux machine it makes about 10% when tested with Cmark's `make bench`.
Martin Mitas 96a92808 2016-11-26T14:00:40 CMakeLists.txt: By default, do Release build.
Martin Mitas 818dd387 2016-10-03T20:38:11 Do not change build output dir. It causes filename coflict on Unix systems: Linker cannot output 'md2html' if a subdirectory of the same name exists.
Martin Mitas efed58af 2016-10-03T20:17:15 Initial commit.