A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/alandefreitas/matplotplusplus/commit/9c719c6afa6755f5098e1ae207944a252f3d0a37 below:

fix set_optimization_flags() (issue #185) · alandefreitas/matplotplusplus@9c719c6 · GitHub

File tree Expand file treeCollapse file tree 1 file changed

+6

-6

lines changed

Filter options

Expand file treeCollapse file tree 1 file changed

+6

-6

lines changed Original file line number Diff line number Diff line change

@@ -65,20 +65,20 @@ macro(set_optimization_flags)

65 65

if (NOT OPTIMIZATION_FLAG_IS_SET)

66 66

if (CMAKE_BUILD_TYPE STREQUAL "Debug")

67 67

if (EMSCRIPTEN)

68 -

list(APPEND CMAKE_CXX_FLAGS " -O0 -g4")

68 +

set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -O0 -g4")

69 69

elseif (MSVC)

70 -

list(APPEND CMAKE_CXX_FLAGS " /O0")

70 +

set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /O0")

71 71

elseif(CMAKE_CXX_COMPILER_ID STREQUAL "Clang" OR CMAKE_CXX_COMPILER_ID STREQUAL "AppleClang")

72 -

list(APPEND CMAKE_CXX_FLAGS " -O0")

72 +

set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -O0")

73 73

else()

74 74

# https://gcc.gnu.org/onlinedocs/gcc/Optimize-Options.html

75 -

list(APPEND CMAKE_CXX_FLAGS " -Og")

75 +

set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Og")

76 76

endif()

77 77

else()

78 78

if (MSVC)

79 -

list(APPEND CMAKE_CXX_FLAGS " /O2")

79 +

set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /O2")

80 80

else()

81 -

list(APPEND CMAKE_CXX_FLAGS " -O2")

81 +

set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -O2")

82 82

endif()

83 83

endif()

84 84

message("Setting CXX flags to default for ${CMAKE_BUILD_TYPE} mode (${CMAKE_CXX_FLAGS})")

You can’t perform that action at this time.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4