Commit c98d6a27 authored by Jakub Klinkovský's avatar Jakub Klinkovský
Browse files

Removed OptimizeForArchitecture from CMakeLists.txt

It does not have any effect on recent builds and we explicitly set
-march=native -mtune=native later in the file.
parent d6d663ad
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -37,10 +37,10 @@ option(WITH_TEMPLATES_INSTANTIATION "Enable explicit template instantiation" OFF
set( TNL_TARGET_INCLUDE_DIRECTORY "include/TNL" )
set( TNL_TARGET_DATA_DIRECTORY "share/TNL" )

# set cmake's include path so that we can include modules from
# the cmake directory in the TNL repository
set( CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/cmake" )

include( OptimizeForArchitecture )

# Note that in cmake 3.10 the FindOpenMP module is broken - it does not work when
# CMAKE_EXECUTABLE_SUFFIX is not empty, see https://www.mail-archive.com/cmake@cmake.org/msg56886.html
# Hence, we find OpenMP before setting CMAKE_EXECUTABLE_SUFFIX.