CMakeLists.txt


Log

Author Commit Date CI Message
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.