summaryrefslogtreecommitdiff
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorAdam Bird <archez39@me.com>2024-02-28 23:49:06 -0500
committerAdam Bird <archez39@me.com>2024-02-28 23:49:06 -0500
commit7bd2a7c3a6a57e3048584ee1678dd5d7702d3c80 (patch)
tree18e3c811a7474a95f7e0b40d68c243eb9263e162 /CMakeLists.txt
parent612da023f0f9da864c2830d2539e49b660ed2ff4 (diff)
parentbcbe4cb1c35798cc1017844fc453de8ab8bfc6f1 (diff)
Merge remote-tracking branch 'origin/develop' into merge-macready-805
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt20
1 files changed, 9 insertions, 11 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 2c8644af4..b5c06692b 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -13,20 +13,18 @@ set_property(DIRECTORY ${CMAKE_SOURCE_DIR} PROPERTY VS_STARTUP_PROJECT soh)
add_compile_options($<$<CXX_COMPILER_ID:MSVC>:/MP>)
add_compile_options($<$<CXX_COMPILER_ID:MSVC>:/utf-8>)
-if (CMAKE_SYSTEM_NAME MATCHES "Windows|Linux")
- if(NOT DEFINED BUILD_CROWD_CONTROL)
- set(BUILD_CROWD_CONTROL ON)
- endif()
-endif()
-
if (CMAKE_SYSTEM_NAME STREQUAL "Windows")
-include(CMake/automate-vcpkg.cmake)
+ include(CMake/automate-vcpkg.cmake)
-set(VCPKG_TRIPLET x64-windows-static)
-set(VCPKG_TARGET_TRIPLET x64-windows-static)
+ set(VCPKG_TRIPLET x64-windows-static)
+ set(VCPKG_TARGET_TRIPLET x64-windows-static)
-vcpkg_bootstrap()
-vcpkg_install_packages(zlib bzip2 libpng sdl2 sdl2-net glew glfw3)
+ vcpkg_bootstrap()
+ vcpkg_install_packages(zlib bzip2 libpng sdl2 sdl2-net glew glfw3)
+
+ if (CMAKE_C_COMPILER_LAUNCHER MATCHES "ccache|sccache")
+ set(CMAKE_MSVC_DEBUG_INFORMATION_FORMAT Embedded)
+ endif()
endif()
################################################################################