From c98d6a270c2caeb7d277ec411c88239f565476ed Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakub=20Klinkovsk=C3=BD?= <klinkjak@fjfi.cvut.cz> Date: Sat, 6 Oct 2018 10:09:33 +0200 Subject: [PATCH] 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. --- CMakeLists.txt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index fc377eee6c..a09ba7a341 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -37,9 +37,9 @@ 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_MODULE_PATH "${CMAKE_SOURCE_DIR}/cmake") - -include( OptimizeForArchitecture ) +# 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" ) # 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 -- GitLab