Skip to content

Commit 8a64802

Browse files
committed
fix flag
1 parent 3dd945a commit 8a64802

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

CMakeLists.txt

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,7 @@ find_package(PkgConfig)
1313

1414
# ### Search Additional Libraries ##########
1515

16-
17-
16+
SET(CMAKE_CXX_FLAGS "-std=c++11 -O3")
1817

1918
# #### End of additional libraries search ##########
2019

@@ -67,11 +66,11 @@ SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${CIMG_CFLAGS}")
6766

6867
# to disable some warnings for CImg
6968
if (NOT WIN32)
70-
set(CMAKE_CXX_FLAGS "-Wdeprecated -Wno-attributes" )
69+
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wdeprecated -Wno-attributes" )
7170
endif()
7271

7372
if (APPLE)
74-
set(CMAKE_CXX_FLAGS "-Wdeprecated -Wwritable-strings -std=c++11" )
73+
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wdeprecated -Wwritable-strings -std=c++11" )
7574
endif()
7675

7776
if (MSVC)

0 commit comments

Comments
 (0)