diff options
author | Gerald Combs <gerald@wireshark.org> | 2016-03-25 11:23:16 -0700 |
---|---|---|
committer | Gerald Combs <gerald@wireshark.org> | 2016-03-25 18:39:40 +0000 |
commit | 731c383f5f3948f97990345cef02258d29ad7108 (patch) | |
tree | 9c1fd1c0e9959fb1e049fca6d1198994289f5d8e /README.cmake | |
parent | b48fc66cbc98fb0431a7b32c672b98c3d195ac95 (diff) |
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 <gerald@wireshark.org>
Diffstat (limited to 'README.cmake')
-rw-r--r-- | README.cmake | 5 |
1 files changed, 5 insertions, 0 deletions
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. |