Skip to content
Snippets Groups Projects
Commit 1c1de07b authored by Lionel GUEZ's avatar Lionel GUEZ
Browse files

Add profile build type

parent a4789ed6
No related branches found
No related tags found
No related merge requests found
cmake_minimum_required(VERSION 3.18)
project(Detection_eddies LANGUAGES Fortran)
set_property(CACHE CMAKE_BUILD_TYPE PROPERTY STRINGS Debug Release Profile)
list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_LIST_DIR}/cmake")
find_package(NR_util REQUIRED CONFIG)
find_package(Jumble REQUIRED CONFIG)
......
......@@ -75,3 +75,6 @@ elseif(CMAKE_Fortran_COMPILER_ID MATCHES NAG)
# without that option, and is not compatible with calling C code
# via a BIND(C) interface.
endif()
set(CMAKE_Fortran_FLAGS_PROFILE "-p -g -O2")
set(CMAKE_EXE_LINKER_FLAGS_PROFILE "-p -g -O2")
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment