From 731c383f5f3948f97990345cef02258d29ad7108 Mon Sep 17 00:00:00 2001 From: Gerald Combs Date: Fri, 25 Mar 2016 11:23:16 -0700 Subject: CMake: Add a note about CMAKE_TRY_COMPILE_CONFIGURATION. Note that CMAKE_TRY_COMPILE_CONFIGURATION can noticeably affect the run time of MSBuild, which in turn affects try_compile, which we call many, many times. Change-Id: I041d00e647ab570ec14f7c78b1d1d6806ac31ce4 Reviewed-on: https://code.wireshark.org/review/14630 Reviewed-by: Gerald Combs --- README.cmake | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'README.cmake') diff --git a/README.cmake b/README.cmake index d72cd1abb7..03b72fbe45 100644 --- a/README.cmake +++ b/README.cmake @@ -64,6 +64,11 @@ Note 1: -G "CodeBlocks - Unix Makefiles" -G "CodeBlocks - NMake Makefiles" + # We call try_compile many times, particularly via ConfigureChecks.cmake. + # Setting a lightweight try_compile configuration can speed up cmake, + # particularly for MSBuild. + -DCMAKE_TRY_COMPILE_CONFIGURATION=Release + Note 2: After running cmake, you can always run "make help" to see a list of all possible make targets. -- cgit v1.2.1