mirror of
https://github.com/geode-sdk/example-mod.git
synced 2024-11-24 08:18:04 -05:00
undo cmake changes
geode itself already sets up ccache
This commit is contained in:
parent
b41e06376d
commit
1d009d9650
1 changed files with 0 additions and 17 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue