From db15cec5313bf5380521eacdcfb6f65ad607fe3a 2017-05-29 16:29:51 From: mperrinel Date: 2017-05-29 16:29:51 Subject: [PATCH] Prise en compte du suffix des binaires en fonction du BUILD_TYPE --- diff --git a/cmake/sciqlop_params.cmake b/cmake/sciqlop_params.cmake index 880f268..cfb64d5 100644 --- a/cmake/sciqlop_params.cmake +++ b/cmake/sciqlop_params.cmake @@ -17,6 +17,15 @@ # SET (DEBUG_SUFFIX "") #ENDIF() +IF(CMAKE_BUILD_TYPE MATCHES "Debug") + SET (CMAKE_BUILD_TYPE "Debug") + SET (DEBUG_SUFFIX "d") +ELSE() + MESSAGE (STATUS "Build in Release") + SET (SCIQLOP_BUILD_TYPE "Release") + SET (DEBUG_SUFFIX "") +ENDIF() + # # Need to compile tests? #