diff --git a/CMakeLists.txt b/CMakeLists.txt index fc377eee6cdbe9dfbbf7710ebfc4038a8d08417a..a09ba7a341c6c54abe3712cd04795e39a578e000 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