From a0a1dd6c35f57dadd7a5aa1fba9c484ffca14e3f Mon Sep 17 00:00:00 2001 From: Christophe Riccio Date: Mon, 9 May 2016 10:36:22 +0200 Subject: [PATCH] Generate assembly with Visual C++ --- CMakeLists.txt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index a11c561c..d3edc47d 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -87,6 +87,10 @@ else() endif() endif() +if("${CMAKE_CXX_COMPILER_ID}" STREQUAL "MSVC") + add_definitions(/FAs) +endif() + option(GLM_TEST_ENABLE_SIMD_SSE2 "Enable SSE2 optimizations" OFF) option(GLM_TEST_ENABLE_SIMD_SSE3 "Enable SSE3 optimizations" OFF) option(GLM_TEST_ENABLE_SIMD_AVX "Enable AVX optimizations" OFF)