Revision: 75358
          http://sourceforge.net/p/brlcad/code/75358
Author:   starseeker
Date:     2020-04-11 00:46:22 +0000 (Sat, 11 Apr 2020)
Log Message:
-----------
Optimization makes a huge runtime difference here...

Modified Paths:
--------------
    brlcad/trunk/regress/licenses/CMakeLists.txt

Modified: brlcad/trunk/regress/licenses/CMakeLists.txt
===================================================================
--- brlcad/trunk/regress/licenses/CMakeLists.txt        2020-04-11 00:33:34 UTC 
(rev 75357)
+++ brlcad/trunk/regress/licenses/CMakeLists.txt        2020-04-11 00:46:22 UTC 
(rev 75358)
@@ -1,4 +1,9 @@
 add_executable(lcheck licenses_check.cpp)
+if (O3_COMPILER_FLAG)
+  # This check benefits greatly from optimization. If we have the O3 flag, use
+  # it - whether or not the standard build settings would add it.
+  target_compile_options(lcheck PRIVATE "-O3")
+endif (O3_COMPILER_FLAG)
 
 set(LOG_FILE "${CMAKE_CURRENT_BINARY_DIR}/regress-licenses.log")
 set(STAMP_FILE "${CMAKE_CURRENT_BINARY_DIR}/regress-licenses.done")

This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.



_______________________________________________
BRL-CAD Source Commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-commits

Reply via email to