From 0cd5398354d8ecae47afeef98b42b81b431ea165 Mon Sep 17 00:00:00 2001 From: Matthias Schiffer Date: Mon, 16 Mar 2015 17:31:05 +0100 Subject: doc: mention CMAKE_BUILD_TYPE --- doc/source/devel/building.rst | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'doc') diff --git a/doc/source/devel/building.rst b/doc/source/devel/building.rst index d7260b8..51f56e6 100644 --- a/doc/source/devel/building.rst +++ b/doc/source/devel/building.rst @@ -27,7 +27,7 @@ fastd uses the CMake build system. The libuecc build works the same. # Create a build dir mkdir fastd-build cd fastd-build - cmake ../fastd + cmake ../fastd -DCMAKE_BUILD_TYPE=RELEASE # Set DEBUG instead of RELEASE if you plan to develop on fastd # Build fastd, binary can be found in the src subdir of the build dir make @@ -40,8 +40,7 @@ if it is installed (in package ``cmake-curses-gui`` on Debian). CMake variables ~~~~~~~~~~~~~~~ - -There are a few option that can be given to cmake with ``-DVARIABLE=VALUE``: +There are a few more options besides ``CMAKE_BUILD_TYPE`` that can be given to cmake with ``-DVARIABLE=VALUE``: * If you have a recent enough toolchain (GCC 4.8 or higher recommended), you can enable link-time optimization with ENABLE_LTO=ON to get slightly better optimized binaries * By default, fastd will try to build against libsodium. If you want to use NaCl instead, set ENABLE_LIBSODIUM=OFF -- cgit v1.2.3