-
-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
3 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
|
@@ -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}) | ||
|