- Fixed some more compilation issues
- Added some more information to the licensing section of README.md
This commit is contained in:
@@ -4,7 +4,6 @@ project(fennec)
|
||||
# External dependencies should be loaded here
|
||||
|
||||
# SDL is a dependency of the project, added as a git submodule
|
||||
set(SDL_STATIC 1)
|
||||
add_subdirectory(external/sdl)
|
||||
|
||||
# CppTrace is a dependency of the project, added as a git submodule
|
||||
@@ -134,9 +133,9 @@ add_library(fennec STATIC
|
||||
|
||||
# add metaprogramming templates as a dependency and also force documentation to be generated when fennec is compiled
|
||||
if(DOXYGEN_FOUND)
|
||||
add_dependencies(fennec fennecdocs metaprogramming SDL3-static cpptrace::cpptrace)
|
||||
add_dependencies(fennec fennecdocs metaprogramming SDL3-shared cpptrace::cpptrace)
|
||||
else()
|
||||
add_dependencies(fennec metaprogramming SDL3-static cpptrace::cpptrace)
|
||||
add_dependencies(fennec metaprogramming SDL3-shared cpptrace::cpptrace)
|
||||
endif()
|
||||
|
||||
# Compiler Warning Flags
|
||||
@@ -148,11 +147,11 @@ endif()
|
||||
|
||||
target_compile_options(fennec PUBLIC "-mavx" "-mavx2" "-mavx512f") # SIMD Instructions, automatic vectorization will occur
|
||||
|
||||
target_link_options(fennec PRIVATE "-nostdlib -nodefaultlibs -fno-exceptions -fdiagnostics-all-candidates") # Do not compile base fennec library with c++ stdlib
|
||||
target_link_options(fennec PRIVATE "-nostdlib" "-fno-exceptions" "-fno-rtti" "-fdiagnostics-all-candidates") # Do not compile base fennec library with c++ stdlib
|
||||
# fennec does not use the C++ stdlib because it is bloated, difficult to read, and implementation defined.
|
||||
# This implementation is designed to be as readable as possible, and expose information that would otherwise be obfuscated
|
||||
|
||||
target_link_libraries(fennec PRIVATE SDL3-static cpptrace::cpptrace)
|
||||
target_link_libraries(fennec PRIVATE SDL3-shared cpptrace::cpptrace)
|
||||
|
||||
|
||||
# add the test suite as a sub-project
|
||||
|
||||
Reference in New Issue
Block a user