Skip to content

Commit

Permalink
fixes2
Browse files Browse the repository at this point in the history
  • Loading branch information
MarioSieg committed Feb 18, 2025
1 parent a3d16d2 commit 3f6463a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion cmake/compiler_config.cmake
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# (c) 2025 Mario "Neo" Sieg. <[email protected]>

message("Configuring magnetron project for ${CMAKE_SYSTEM_PROCESSOR}...")
message("C compiler: ${CMAKE_C_COMPILER_ID}")

set(MAG_MSVC_COMPILE_FLAGS
/W3
/Oi
Expand Down Expand Up @@ -69,7 +72,6 @@ if (WIN32) # Windows (MSVC) specific config
endif()
else() # GCC/Clang specific config
target_link_libraries(magnetron m) # link math library

if (CMAKE_C_COMPILER_ID STREQUAL "GNU")
target_compile_options(magnetron PRIVATE ${MAG_GCC_COMPILE_FLAGS})
target_link_options(magnetron PRIVATE ${MAG_GCC_LINK_OPTIONS})
Expand Down

0 comments on commit 3f6463a

Please sign in to comment.