Skip to content

Commit

Permalink
keep up with cmake changes, add -Wall to compile flags
Browse files Browse the repository at this point in the history
  • Loading branch information
carltimmer committed Sep 20, 2024
1 parent 6f53917 commit 233fc5a
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,12 @@


# This call must be placed BEFORE "project" command
cmake_minimum_required(VERSION 3.3)
cmake_minimum_required(VERSION 3.15)

cmake_policy(SET CMP0167 NEW)
# in cmake v 3.30 and later, new way to look for boost
if(POLICY CMP0167)
cmake_policy(SET CMP0167 NEW)
endif()

project(evio VERSION 6.0)

Expand All @@ -31,6 +34,7 @@ set(CMAKE_CXX_STANDARD_REQUIRED True)
set(CMAKE_DEBUG_POSTFIX -dbg)
#set(CMAKE_BUILD_TYPE Debug)
#add_compile_options(-g)
add_compile_options(-Wall)


# Place libs & binaries in build/lib and bin (this is not for installation)
Expand Down

0 comments on commit 233fc5a

Please sign in to comment.