Explorar el Código

CMAKE_BUILD_TYPE was being overridden on GNU

lagkey
Trevor Irons hace 6 años
padre
commit
68e6e52d05
Se han modificado 1 ficheros con 5 adiciones y 6 borrados
  1. 5
    6
      CMakeLists.txt

+ 5
- 6
CMakeLists.txt Ver fichero

@@ -22,13 +22,12 @@ set(LEMMA_VERSION_NOQUOTES "${LEMMA_VERSION_MAJOR}.${LEMMA_VERSION_MINOR}.${LEMM
22 22
 ########################################
23 23
 
24 24
 ## Options--what do you want to do
25
-
26 25
 option ( BUILD_SHARED_LIBS      "Shared or static libraries"  OFF )
27
-set(CMAKE_BUILD_TYPE "Release" STRING
28
-       "Choose the type of build, options are: Debug Release RelWithDebInfo MinSizeRel."
29
-       FORCE cache)
30
-set_property(CACHE CMAKE_BUILD_TYPE PROPERTY STRINGS Debug Release RelWithDebInfo MinSizeRel )
31
- 
26
+
27
+IF( NOT CMAKE_BUILD_TYPE )
28
+   SET( CMAKE_BUILD_TYPE Release ... FORCE )
29
+ENDIF()
30
+
32 31
 option ( LEMMA_ENABLE_TESTING       "Turn on unit testing" OFF )
33 32
 option ( LEMMA_BUILD_EXAMPLES       "Compile example Lemma applications" OFF )
34 33
 option ( LEMMA_USE_OPENMP           "Use OpenMP in Lemma" OFF )

Loading…
Cancelar
Guardar