cmake fix to include math lib
Some checks failed
studiorailgun/Renderer/pipeline/head There was a failure building this commit

This commit is contained in:
austin 2024-12-12 15:24:15 -05:00
parent 150f89497f
commit a05804da33
2 changed files with 2 additions and 2 deletions

View File

@ -21,7 +21,7 @@ target_include_directories(StormEngine PUBLIC ${PROJECT_SOURCE_DIR}/src/main/c/i
target_include_directories(StormEngine PUBLIC ${PROJECT_SOURCE_DIR}/src/main/c/lib)
# set props for the lib
target_compile_options(StormEngine PRIVATE -m64 -mavx -mavx2)
target_compile_options(StormEngine PRIVATE -m64 -mavx -mavx2 -lm)
if (WIN32)

View File

@ -58,7 +58,7 @@ foreach (TEST_FILE ${TEST_SOURCES})
endif()
endforeach ()
target_compile_options(test_runner PRIVATE -m64 -mavx -mavx2)
target_compile_options(test_runner PRIVATE -m64 -mavx -mavx2 -lm)
# make test runner depend on library
add_dependencies(test_runner StormEngine)