Skip to content

Commit

Permalink
fix apple linker problem on github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
ezillinger committed May 5, 2024
1 parent 2f8efa8 commit 40e3644
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
cmake_minimum_required(VERSION 3.14)
cmake_minimum_required(VERSION 3.29)

# set the project name
project( ezgb )
Expand Down
6 changes: 6 additions & 0 deletions src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,12 @@ target_include_directories(ezgb PRIVATE
./libs/imgui
)

# some xcode versions have a bad linker - use the old one
if (APPLE)
message("Using classic macOS linker")
set_property(TARGET ezgb PROPERTY LINKER_TYPE APPLE_CLASSIC)
endif()

if(MSVC)
target_compile_options(ezgb PRIVATE /W4 /WX)
target_compile_features(ezgb PRIVATE cxx_std_20)
Expand Down

0 comments on commit 40e3644

Please sign in to comment.