Skip to content

Commit

Permalink
[max] fat libraries now mean x64 / arm64
Browse files Browse the repository at this point in the history
  • Loading branch information
jcelerier committed Jul 5, 2024
1 parent 34f7737 commit 1fe7287
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 9 deletions.
8 changes: 1 addition & 7 deletions cmake/OssiaOptions.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -295,13 +295,7 @@ if(OSSIA_JAVA)
endif()

if(OSSIA_OSX_FAT_LIBRARIES)
string(REGEX MATCH "[0-9]+.[0-9]+" MACOS_SDK_VERSION "${CMAKE_OSX_SYSROOT}")
if(MACOS_SDK_VERSION VERSION_LESS 10.14)
set(CMAKE_OSX_ARCHITECTURES "i386;x86_64")
set(OSSIA_PCH 0)
else()
message(WARNING "macOS ${MACOS_SDK_VERSION} do not support building 32-bit anymore.")
endif()
set(CMAKE_OSX_ARCHITECTURES "x86_64;arm64")
endif()

if(OSSIA_NO_QT)
Expand Down
1 change: 1 addition & 0 deletions src/ossia-max/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,7 @@ target_compile_features(${PROJECT_NAME} PRIVATE cxx_std_20)

use_gold(${PROJECT_NAME})
add_linker_warnings_external(${PROJECT_NAME})
ossia_set_visibility(${PROJECT_NAME})

target_link_libraries(${PROJECT_NAME} PRIVATE ossia
$<LINK_ONLY:$<$<BOOL:${WIN32}>:${MAXSDK_API_LIBRARY}>>
Expand Down
4 changes: 2 additions & 2 deletions src/ossia-max/src/ocue.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -650,7 +650,7 @@ void ocue::explore(int argc, t_atom* argv)

void ocue::select(int argc, t_atom* argv)
{
invoke_mem_fun(argc, argv, [this](std::string_view name) {
invoke_mem_fun(argc, argv, [](std::string_view name) {

});
}
Expand All @@ -659,7 +659,7 @@ void ocue::select_model(int argc, t_atom* argv)
{
display_model(argc, argv);
// Adds it / removes it from / to the selection
invoke_mem_fun(argc, argv, [this](std::string_view name) {
invoke_mem_fun(argc, argv, [](std::string_view name) {

});
}
Expand Down

0 comments on commit 1fe7287

Please sign in to comment.