make function_time compile in release mode

This commit is contained in:
Krishna Vedala 2020-04-20 12:04:08 -04:00
parent 2a8848bf23
commit a4cb77a36f
No known key found for this signature in database
GPG Key ID: BA19ACF8FC8792F7
1 changed files with 7 additions and 1 deletions

View File

@ -7,7 +7,13 @@ project(Algorithms_in_C
option(USE_OPENMP "flag to use OpenMP for multithreading" ON)
add_subdirectory(function_timer EXCLUDE_FROM_ALL)
function(function_timer)
set(CMAKE_BUILD_TYPE "Release") # This is local to function
add_subdirectory(function_timer EXCLUDE_FROM_ALL)
endfunction()
function_timer()
include_directories(function_timer/include)
# link_libraries(function_timer)
# include_directories(${CMAKE_BINARY_DIR}/include)