|
@@ -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 )
|
|
@@ -57,8 +56,8 @@ if (CMAKE_CROSSCOMPILING)
|
57
|
56
|
UNSET( yaml-cpp_DIR CACHE )
|
58
|
57
|
UNSET( Eigen3_FOUND CACHE )
|
59
|
58
|
UNSET( yaml-cpp_FOUND CACHE )
|
60
|
|
- find_package (yaml-cpp 0.6 PATHS ${CMAKE_INSTALL_PREFIX} REQUIRED ) #QUIET ) # Serialisation of classes
|
61
|
|
- find_package (Eigen3 3.3 PATHS ${CMAKE_INSTALL_PREFIX} REQUIRED ) # QUIET) # Matrix/Vector & Math
|
|
59
|
+ find_package (yaml-cpp 0.6 PATHS ${CMAKE_INSTALL_PREFIX} ) #QUIET ) # Serialisation of classes
|
|
60
|
+ find_package (Eigen3 3.3 PATHS ${CMAKE_INSTALL_PREFIX} ) # QUIET) # Matrix/Vector & Math
|
62
|
61
|
endif()
|
63
|
62
|
|
64
|
63
|
find_package (Eigen3 3.3 QUIET) # Matrix/Vector & Math
|