Skip to content

Instantly share code, notes, and snippets.

@phaustin
Created May 25, 2019 16:24
Show Gist options
  • Save phaustin/6e9329d36012efe635b59be2b5211945 to your computer and use it in GitHub Desktop.
Save phaustin/6e9329d36012efe635b59be2b5211945 to your computer and use it in GitHub Desktop.
cmake add flags
Tom de Geus @tdegeus May 24 05:27
@tatatupi I do it like this:
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -march=native")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DXTENSOR_USE_XSIMD=ON")
Also I think that CMake in Release mode already uses -O3, but you can easily check

Taiguara Tupinambás @tatatupi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment