Skip to content

Commit

Permalink
fix: compile universal binaries on macOS
Browse files Browse the repository at this point in the history
  • Loading branch information
craftablescience committed Jun 30, 2024
1 parent 7152e26 commit 6bcd567
Show file tree
Hide file tree
Showing 26 changed files with 12 additions and 3 deletions.
11 changes: 10 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,13 @@
cmake_minimum_required(VERSION 3.25 FATAL_ERROR)


# Set defaults before project call
if(PROJECT_IS_TOP_LEVEL)
set(CMAKE_OSX_ARCHITECTURES "arm64;x86_64")
endif()


# Create project
project(sourcepp)
set(CMAKE_CXX_STANDARD 20)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
Expand Down Expand Up @@ -28,7 +37,7 @@ endif()
option(FGDPP_ENABLE_SPEN_FGD_SUPPORT "Enable support for FGD alterations (https://github.com/TeamSpen210/HammerAddons/wiki/Unified-FGD) made by TeamSpen's HammerAddons. Fully backwards compatible with Valve's FGD standard." OFF)


# Set defaults
# Set defaults after project call
if(PROJECT_IS_TOP_LEVEL)
set(CMAKE_POSITION_INDEPENDENT_CODE ON)
endif()
Expand Down
4 changes: 2 additions & 2 deletions ext/compressonator/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ function(target_link_compressonator TARGET)
endif()
elseif(APPLE)
target_link_libraries(${TARGET} PRIVATE
"${COMPRESSONATOR_DIR}/lib/osx_arm64/libCompressonator$<$<CONFIG:Debug>:d>.a"
"${COMPRESSONATOR_DIR}/lib/osx_arm64/libCMP_Core$<$<CONFIG:Debug>:d>.a")
"${COMPRESSONATOR_DIR}/lib/macOS/libCompressonator$<$<CONFIG:Debug>:d>.a"
"${COMPRESSONATOR_DIR}/lib/macOS/libCMP_Core$<$<CONFIG:Debug>:d>.a")
elseif(UNIX)
target_link_libraries(${TARGET} PRIVATE
"${COMPRESSONATOR_DIR}/lib/linux_x86_64/libCompressonator$<$<CONFIG:Debug>:d>.a"
Expand Down
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified ext/compressonator/lib/win_x86_64/CMP_Core_MD.lib
Binary file not shown.
Binary file modified ext/compressonator/lib/win_x86_64/CMP_Core_MD_AVX.lib
Binary file not shown.
Binary file modified ext/compressonator/lib/win_x86_64/CMP_Core_MD_AVX512.lib
Binary file not shown.
Binary file modified ext/compressonator/lib/win_x86_64/CMP_Core_MD_AVX512d.lib
Binary file not shown.
Binary file modified ext/compressonator/lib/win_x86_64/CMP_Core_MD_AVXd.lib
Binary file not shown.
Binary file modified ext/compressonator/lib/win_x86_64/CMP_Core_MD_SSE.lib
Binary file not shown.
Binary file modified ext/compressonator/lib/win_x86_64/CMP_Core_MD_SSEd.lib
Binary file not shown.
Binary file modified ext/compressonator/lib/win_x86_64/CMP_Core_MDd.lib
Binary file not shown.
Binary file modified ext/compressonator/lib/win_x86_64/CMP_Core_MT.lib
Binary file not shown.
Binary file modified ext/compressonator/lib/win_x86_64/CMP_Core_MT_AVX.lib
Binary file not shown.
Binary file modified ext/compressonator/lib/win_x86_64/CMP_Core_MT_AVX512.lib
Binary file not shown.
Binary file modified ext/compressonator/lib/win_x86_64/CMP_Core_MT_AVX512d.lib
Binary file not shown.
Binary file modified ext/compressonator/lib/win_x86_64/CMP_Core_MT_AVXd.lib
Binary file not shown.
Binary file modified ext/compressonator/lib/win_x86_64/CMP_Core_MT_SSE.lib
Binary file not shown.
Binary file modified ext/compressonator/lib/win_x86_64/CMP_Core_MT_SSEd.lib
Binary file not shown.
Binary file modified ext/compressonator/lib/win_x86_64/CMP_Core_MTd.lib
Binary file not shown.
Binary file modified ext/compressonator/lib/win_x86_64/Compressonator_MD.lib
Binary file not shown.
Binary file modified ext/compressonator/lib/win_x86_64/Compressonator_MDd.lib
Binary file not shown.
Binary file modified ext/compressonator/lib/win_x86_64/Compressonator_MT.lib
Binary file not shown.
Binary file modified ext/compressonator/lib/win_x86_64/Compressonator_MTd.lib
Binary file not shown.

0 comments on commit 6bcd567

Please sign in to comment.