summaryrefslogtreecommitdiff
path: root/misc/dartsim/files/patch-CMakeLists.txt
blob: 63418813c59973280df8d9afc939498c20ac91a6 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
--- CMakeLists.txt.orig	2024-06-25 05:13:56 UTC
+++ CMakeLists.txt
@@ -294,7 +294,7 @@ elseif(CMAKE_COMPILER_IS_GNUCXX)
     # TODO: These warnings should be properly addressed and these compiler options removed
     add_compile_options(-Wno-overloaded-virtual -Wno-alloc-size-larger-than -Wno-dangling-pointer)
   endif()
-  set(CMAKE_CXX_FLAGS_RELEASE "-O3 -DNDEBUG")
+  set(CMAKE_CXX_FLAGS_RELEASE "-DNDEBUG")
   set(CMAKE_CXX_FLAGS_DEBUG "-g -fno-omit-frame-pointer -fno-inline-functions -fno-inline-functions-called-once -fno-optimize-sibling-calls")
   if(DART_FAST_DEBUG)
     set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -O1")
@@ -322,7 +322,7 @@ elseif("${CMAKE_CXX_COMPILER_ID}" MATCHES "Clang")
   if("${CMAKE_SYSTEM_NAME}" MATCHES "Darwin")
     set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -stdlib=libc++")
   endif()
-  set(CMAKE_CXX_FLAGS_RELEASE "-O3 -DNDEBUG")
+  set(CMAKE_CXX_FLAGS_RELEASE "-DNDEBUG")
   set(CMAKE_CXX_FLAGS_DEBUG "-g -fno-omit-frame-pointer -fno-inline-functions -fno-optimize-sibling-calls")
   if(DART_FAST_DEBUG)
     set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -O1")
@@ -390,20 +390,20 @@ if(TARGET dart)
   if(MSVC)
     add_subdirectory(examples)
   else()
-    add_subdirectory(examples EXCLUDE_FROM_ALL)
-    get_property(examples GLOBAL PROPERTY DART_EXAMPLES)
-    add_custom_target(examples DEPENDS ${examples})
+    #add_subdirectory(examples EXCLUDE_FROM_ALL)
+    #get_property(examples GLOBAL PROPERTY DART_EXAMPLES)
+    #add_custom_target(examples DEPENDS ${examples})
   endif()
 
   if(DART_VERBOSE)
     message(STATUS "")
     message(STATUS "[ Examples ]")
-    foreach(example ${examples})
-      message(STATUS "Adding example: ${example}")
-    endforeach(example ${examples})
-  else(DART_VERBOSE)
-    list(LENGTH examples examples_length)
-    message(STATUS "Adding ${examples_length} examples")
+    #foreach(example ${examples})
+    #  message(STATUS "Adding example: ${example}")
+    #endforeach(example ${examples})
+  #else(DART_VERBOSE)
+    #list(LENGTH examples examples_length)
+    #message(STATUS "Adding ${examples_length} examples")
   endif(DART_VERBOSE)
 
   # Add a "tutorials" target to build tutorials.