Skip to content

Commit

Permalink
Issue #10 - Using CMAKE_CXX_STANDARD to define the C++ standard.
Browse files Browse the repository at this point in the history
  • Loading branch information
vldtecno committed Dec 23, 2017
1 parent 2b13f32 commit bb7f618
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,11 @@ project (PTN_Engine)

option(BUILD_SHARED_LIBS "Build shared libraries (DLLs)." OFF)

set (CMAKE_CXX_STANDARD 14)
if(CMAKE_COMPILER_IS_GNUCXX)
#set(MULTITHREADED_BUILD 8 CACHE STRING "How many threads are used to build the project")
#set(CMAKE_MAKE_PROGRAM "${CMAKE_MAKE_PROGRAM} -j${MULTITHREADED_BUILD}")
set(GCC_COVERAGE_COMPILE_FLAGS "-fprofile-arcs -ftest-coverage -std=c++0x")
set(GCC_COVERAGE_COMPILE_FLAGS "-fprofile-arcs -ftest-coverage")
set(GCC_COVERAGE_LINK_FLAGS "-lgcov -lpthread")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${GCC_COVERAGE_COMPILE_FLAGS}")
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} ${GCC_COVERAGE_LINK_FLAGS}")
Expand Down

0 comments on commit bb7f618

Please sign in to comment.