Skip to content

Commit dd12f97

Browse files
committed
make a better way to use
1 parent 1b7f1ad commit dd12f97

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

CMakeLists.txt

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,13 @@
11
cmake_minimum_required(VERSION 2.9)
22
project(qmc-decoder)
3-
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Og -std=c++11")
4-
if(NOT APPLE)
5-
set(CMAKE_EXE_LINKER_FLAGS "-static-libgcc -static-libstdc++")
6-
endif()
3+
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -O2 -pthread -std=c++11")
74

85
set(Boost_USE_STATIC_LIBS ON)
96
find_package(Boost 1.56 REQUIRED COMPONENTS filesystem)
107
include_directories(${Boost_INCLUDE_DIRS})
118
aux_source_directory(src SRC)
129
add_executable(decoder ${SRC})
13-
target_link_libraries(decoder ${Boost_LIBRARIES})
10+
target_link_libraries(decoder ${Boost_LIBRARIES})
1411

1512

1613

0 commit comments

Comments
 (0)