Commit 59939098 authored by berenger-bramas's avatar berenger-bramas

Update CMakeList to compile in release.

Warning!! Be aware that your files are now generated with Release prefix (like with Debug).

git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/scalfmm/scalfmm/trunk@454 2616d619-271b-44dc-8df4-d4a8f33a7222
parent 4c7a0bf4
......@@ -39,7 +39,7 @@ if( SCALFMM_BUILD_DEBUG )
SET(CMAKE_BUILD_TYPE Debug)
ADD_DEFINITIONS(-O0)
else()
ADD_DEFINITIONS(-O2)
SET(CMAKE_BUILD_TYPE Release)
endif()
# Trace
......@@ -89,3 +89,12 @@ MESSAGE( STATUS "SCALFMM_USE_MEM_STATS = ${SCALFMM_USE_MEM_STATS}" )
# Build - doc
add_subdirectory(Doc)
# Add custom clean command
if("${CMAKE_GENERATOR}" MATCHES "Make")
ADD_CUSTOM_TARGET(reset
COMMAND ${CMAKE_MAKE_PROGRAM} clean && rm -r !(.gitignore) && cmake ..
WORKING_DIRECTORY ${CMAKE_CURRENT_DIR}
COMMENT "Cleaning Build dir and CMake cache, then do cmake.."
)
endif()
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment