Hotfix 0.0.3-1-alpha
FPU accuracy decrease because compilers flags were not getting propagated
This commit is contained in:
@@ -44,6 +44,19 @@ option(RAPIDJSON_BUILD_EXAMPLES "Build rapidjson examples." OFF)
|
||||
option(RAPIDJSON_BUILD_TESTS "Build rapidjson perftests and unittests." OFF)
|
||||
option(BUILD_SHARED_LIBS OFF)
|
||||
|
||||
include(CheckCCompilerFlag)
|
||||
|
||||
check_c_compiler_flag(-msse4.1 HAS_SSE4_1)
|
||||
|
||||
if (HAS_SSE4_1)
|
||||
add_compile_definitions(SIMD_SUPPORT)
|
||||
add_compile_options(-msse3 -msse4.1)
|
||||
endif ()
|
||||
|
||||
if(${CMAKE_BUILD_TYPE} MATCHES Debug)
|
||||
add_compile_definitions(VULKAN_DEBUG)
|
||||
endif()
|
||||
|
||||
add_subdirectory(../../external/discord_rpc discord_rpc)
|
||||
add_subdirectory(../../external/json json)
|
||||
add_subdirectory(../../external/fmt fmt)
|
||||
@@ -77,21 +90,6 @@ add_executable(kaizen-qt
|
||||
InputSettings.hpp
|
||||
InputSettings.cpp)
|
||||
|
||||
include(CheckCCompilerFlag)
|
||||
|
||||
check_c_compiler_flag(-msse4.1 HAS_SSE4_1)
|
||||
|
||||
if (HAS_SSE4_1)
|
||||
target_compile_definitions(kaizen-qt PUBLIC SIMD_SUPPORT)
|
||||
target_compile_options(kaizen-qt PUBLIC -msse3 -msse4.1)
|
||||
endif ()
|
||||
|
||||
if(${CMAKE_BUILD_TYPE} MATCHES Debug)
|
||||
target_compile_definitions(kaizen-qt PUBLIC VULKAN_DEBUG)
|
||||
#target_compile_options(kaizen-qt PUBLIC -fsanitize=address -fsanitize=undefined)
|
||||
#target_link_options(kaizen-qt PUBLIC -fsanitize=address -fsanitize=undefined)
|
||||
endif()
|
||||
|
||||
target_link_libraries(kaizen-qt PUBLIC Qt6::Core Qt6::Gui Qt6::Widgets discord-rpc fmt mio nlohmann_json parallel-rdp backend)
|
||||
target_compile_definitions(kaizen-qt PUBLIC SDL_MAIN_HANDLED)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user