undo cmake changes

geode itself already sets up ccache
This commit is contained in:
mat 2024-05-27 11:14:31 -03:00 committed by GitHub
parent b41e06376d
commit 1d009d9650
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -4,25 +4,8 @@ set(CMAKE_CXX_STANDARD_REQUIRED ON)
set(CMAKE_OSX_ARCHITECTURES "x86_64") set(CMAKE_OSX_ARCHITECTURES "x86_64")
set(CMAKE_CXX_VISIBILITY_PRESET hidden) set(CMAKE_CXX_VISIBILITY_PRESET hidden)
if(WIN32)
set(CMAKE_CONFIGURATION_TYPES "Release;RelWithDebInfo")
else()
set(CMAKE_CONFIGURATION_TYPES "Release;RelWithDebInfo;Debug")
endif()
project(Template VERSION 1.0.0) project(Template VERSION 1.0.0)
# if installed, use sccache or ccache as a compiler cache for quicker builds
find_program(CCACHE_PROGRAM ccache)
find_program(SCCACHE_PROGRAM sccache)
if(SCCACHE_PROGRAM)
set(CMAKE_CXX_COMPILER_LAUNCHER "${SCCACHE_PROGRAM}")
set(CMAKE_C_COMPILER_LAUNCHER "${SCCACHE_PROGRAM}")
elseif(CCACHE_PROGRAM)
set(CMAKE_CXX_COMPILER_LAUNCHER "${CCACHE_PROGRAM}")
set(CMAKE_C_COMPILER_LAUNCHER "${CCACHE_PROGRAM}")
endif()
# Set up the mod binary # Set up the mod binary
add_library(${PROJECT_NAME} SHARED add_library(${PROJECT_NAME} SHARED
src/main.cpp src/main.cpp