Revision: 76144
          http://sourceforge.net/p/brlcad/code/76144
Author:   starseeker
Date:     2020-06-15 18:01:54 +0000 (Mon, 15 Jun 2020)
Log Message:
-----------
O3 seems to really help C++ regex, so add it to the scanning tools as well.

Modified Paths:
--------------
    brlcad/trunk/misc/tools/debug2c/CMakeLists.txt
    brlcad/trunk/misc/tools/env2c/CMakeLists.txt

Modified: brlcad/trunk/misc/tools/debug2c/CMakeLists.txt
===================================================================
--- brlcad/trunk/misc/tools/debug2c/CMakeLists.txt      2020-06-15 17:14:36 UTC 
(rev 76143)
+++ brlcad/trunk/misc/tools/debug2c/CMakeLists.txt      2020-06-15 18:01:54 UTC 
(rev 76144)
@@ -44,7 +44,14 @@
   ${CMAKE_CURRENT_SOURCE_DIR}
   )
 
+include(CheckCXXCompilerFlag)
+check_cxx_compiler_flag(-O3 O3_COMPILER_FLAG)
+
 add_executable(debug2c debug2c.cxx)
+if (O3_COMPILER_FLAG)
+  # If we have the O3 flag, use it
+  target_compile_options(debug2c PRIVATE "-O3")
+endif (O3_COMPILER_FLAG)
 
 # Local Variables:
 # tab-width: 8

Modified: brlcad/trunk/misc/tools/env2c/CMakeLists.txt
===================================================================
--- brlcad/trunk/misc/tools/env2c/CMakeLists.txt        2020-06-15 17:14:36 UTC 
(rev 76143)
+++ brlcad/trunk/misc/tools/env2c/CMakeLists.txt        2020-06-15 18:01:54 UTC 
(rev 76144)
@@ -46,7 +46,15 @@
 
 find_package(Threads)
 
+include(CheckCXXCompilerFlag)
+check_cxx_compiler_flag(-O3 O3_COMPILER_FLAG)
+
 add_executable(env2c env2c.cxx)
+if (O3_COMPILER_FLAG)
+  # If we have the O3 flag, use it
+  target_compile_options(env2c PRIVATE "-O3")
+endif (O3_COMPILER_FLAG)
+
 target_link_libraries(env2c ${CMAKE_THREAD_LIBS_INIT})
 
 # Local Variables:

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