Skip to content

Commit

Permalink
Tweak compiler options
Browse files Browse the repository at this point in the history
  • Loading branch information
FlyGoat authored Dec 7, 2023
1 parent 43bf7ae commit 45c5f28
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,13 +1,24 @@
#cmake version
CMAKE_MINIMUM_REQUIRED(VERSION 3.0)
CMAKE_MINIMUM_REQUIRED(VERSION 3.9)

#define project name
PROJECT(ryzenadj)

set(CMAKE_C_VISIBILITY_PRESET hidden)

set(CMAKE_CXX_STANDARD 11)
set(CMAKE_CXX_VISIBILITY_PRESET hidden)

message(STATUS "Build type: ${CMAKE_BUILD_TYPE}")

#Enable LTO
include(CheckIPOSupported)
check_ipo_supported(RESULT supported OUTPUT error)
if( supported )
message(STATUS "IPO / LTO enabled")
set(CMAKE_INTERPROCEDURAL_OPTIMIZATION TRUE)
endif()

INCLUDE_DIRECTORIES(${INC_DIR})

AUX_SOURCE_DIRECTORY(./ SRC_DIR)
Expand Down

0 comments on commit 45c5f28

Please sign in to comment.