Skip to content

Commit

Permalink
cmakefile
Browse files Browse the repository at this point in the history
  • Loading branch information
Abc Dr committed Jul 31, 2023
1 parent 29124a2 commit 7284cd4
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,10 +1,5 @@
cmake_minimum_required(VERSION 3.16.0 FATAL_ERROR)

set(CMAKE_SYSTEM_VERSION $([Microsoft.Build.Utilities.ToolLocationHelper]::GetLatestSDKTargetPlatformVersion('Windows', '10.0')) CACHE STRING "" FORCE)

set (CMAKE_CXX_STANDARD 20)
set (CMAKE_CXX_STANDARD_REQUIRED ON)

project(asexthook C CXX)

################################################################################
Expand All @@ -31,12 +26,19 @@ set(CMAKE_CONFIGURATION_TYPES
################################################################################
# Global compiler options
################################################################################
set(CMAKE_CXX_STANDARD 20)
set(CMAKE_CXX_STANDARD_REQUIRED ON)

set(CMAKE_BUILD_TYPE Release)

set(CMAKE_C_FLAGS "-m32")
set(CMAKE_C_FLAGS_DEBUG "-m32")
set(CMAKE_C_FLAGS_RELEASE "-m32")
set(CMAKE_C_FLAGS_RELEASE "-m32 -Os -ffunction-sections")
set(CMAKE_CXX_FLAGS "-m32")
set(CMAKE_CXX_FLAGS_DEBUG "-m32")
set(CMAKE_CXX_FLAGS_RELEASE "-m32")
set(CMAKE_CXX_FLAGS_RELEASE "-m32 -Os -ffunction-sections")

set(CMAKE_SHARED_LINKER_FLAGS_RELEASE "-s -Wl --gc-sections")

################################################################################
# Global linker options
Expand Down

0 comments on commit 7284cd4

Please sign in to comment.