Skip to content

Commit

Permalink
Update CMakeLists.txt
Browse files Browse the repository at this point in the history
  • Loading branch information
hallfjonas authored Oct 5, 2023
1 parent ba188bd commit 374c64e
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,8 @@ cmake_minimum_required(VERSION 3.13)
project(lcqpow CXX)

set(CXX_STANDARD 11)
set(CMAKE_CXX_FLAGS "-std=c++11 -stdlib=libc++")
set(CMAKE_CXX_STANDARD_REQUIRED ON)
set(CMAKE_CXX_EXTENSIONS OFF)
set(CXX_STANDARD_REQUIRED ON)

if (POLICY CMP0025)
cmake_policy(SET CMP0025 NEW)
endif ()
Expand All @@ -38,7 +37,7 @@ if(NOT CMAKE_BUILD_TYPE)
endif()

# set some default flags
set(CMAKE_CXX_FLAGS "-Wall -Wextra -pedantic")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -Wextra -pedantic")
set(CMAKE_CXX_FLAGS_DEBUG "-g -O0")
set(CMAKE_CXX_FLAGS_RELEASE "-O3")

Expand Down

0 comments on commit 374c64e

Please sign in to comment.