Browse Source

Revert of yaml-cpp to 0.6.2 due to YAML_LIBRARIES not being set in master

master
Trevor Irons 5 years ago
parent
commit
69b36eb14a

+ 2
- 2
CMake/SuperBuild.cmake View File

22
 else()
22
 else()
23
     message( STATUS "YAML-CPP WAS NOT FOUND, BUILDING" )
23
     message( STATUS "YAML-CPP WAS NOT FOUND, BUILDING" )
24
     ExternalProject_Add(YAML_CPP
24
     ExternalProject_Add(YAML_CPP
25
-        GIT_REPOSITORY  "https://github.com/jbeder/yaml-cpp.git"
26
-        GIT_TAG "master" # "yaml-cpp-0.6.2", # "master" 
25
+        GIT_REPOSITORY  "https://github.com/jbeder/yaml-cpp.git" 
26
+        GIT_TAG  "yaml-cpp-0.6.2"  # "master" 
27
         UPDATE_COMMAND ""
27
         UPDATE_COMMAND ""
28
         PATCH_COMMAND ""
28
         PATCH_COMMAND ""
29
         PREFIX ${CMAKE_CURRENT_BINARY_DIR}/external/yaml-cpp
29
         PREFIX ${CMAKE_CURRENT_BINARY_DIR}/external/yaml-cpp

+ 5
- 5
CMakeLists.txt View File

70
 #            "Please create a separate binary directory and run CMake there.")
70
 #            "Please create a separate binary directory and run CMake there.")
71
 #    endif()
71
 #    endif()
72
 
72
 
73
-    find_package (yaml-cpp 0.6         PATHS ${CMAKE_INSTALL_PREFIX}  NO_DEFAULT_PATH) # Serialisation of classes 
74
-    find_package (Eigen3   3.3         PATHS ${CMAKE_INSTALL_PREFIX}  NO_DEFAULT_PATH) # Matrix/Vector & Math
73
+    find_package (yaml-cpp 0.6    PATHS ${CMAKE_INSTALL_PREFIX}  NO_DEFAULT_PATH) # Serialisation of classes 
74
+    find_package (Eigen3   3.3    PATHS ${CMAKE_INSTALL_PREFIX}  NO_DEFAULT_PATH) # Matrix/Vector & Math
75
 
75
 
76
     if (LEMMA_PYTHON3_BINDINGS)
76
     if (LEMMA_PYTHON3_BINDINGS)
77
         find_package(pybind11 PATHS ${CMAKE_INSTALL_PREFIX} NO_DEFAULT_PATH)           # Python 3 bindings
77
         find_package(pybind11 PATHS ${CMAKE_INSTALL_PREFIX} NO_DEFAULT_PATH)           # Python 3 bindings
165
     message ( STATUS "Missing hard dependencies have been found, these will be downloaded any compiled." )
165
     message ( STATUS "Missing hard dependencies have been found, these will be downloaded any compiled." )
166
     message ( STATUS "This necessitates a two step build." )
166
     message ( STATUS "This necessitates a two step build." )
167
     message ( STATUS "Build these packages first...THEN RERUN CMAKE!" )
167
     message ( STATUS "Build these packages first...THEN RERUN CMAKE!" )
168
-    project (SUPERBUILD NONE)
168
+    project (SUPERBUILD NONE) 
169
   	# execute the superbuild (this script will be invoked again without the
169
   	# execute the superbuild (this script will be invoked again without the
170
-  	# USE_SUPERBUILD option this time)
171
-  	include (CMake/SuperBuild.cmake)
170
+  	# USE_SUPERBUILD option this time) 
171
+    include (CMake/SuperBuild.cmake)
172
   	return()                      # stop processing this file further
172
   	return()                      # stop processing this file further
173
 else()
173
 else()
174
 	#project (Blah)               # <-- YOUR PROJECT NAME HERE
174
 	#project (Blah)               # <-- YOUR PROJECT NAME HERE

+ 6
- 2
Modules/DCIP/CMakeLists.txt View File

1
+option ( LEMMA_MODULE_DCIP TRUE )
2
+
3
+if (LEMMA_MODULE_DCIP) 
4
+
1
 # Configure EMSchur3D 
5
 # Configure EMSchur3D 
2
 set(DCIP_VERSION_MAJOR "0")
6
 set(DCIP_VERSION_MAJOR "0")
3
 set(DCIP_VERSION_MINOR "0")
7
 set(DCIP_VERSION_MINOR "0")
5
 set(DCIP_VERSION "\"${DCIP_VERSION_MAJOR}.${DCIP_VERSION_MINOR}.${DCIP_VERSION_PATCH}\"")
9
 set(DCIP_VERSION "\"${DCIP_VERSION_MAJOR}.${DCIP_VERSION_MINOR}.${DCIP_VERSION_PATCH}\"")
6
 set(DCIP_VERSION_NOQUOTES "${DCIP_VERSION_MAJOR}.${DCIP_VERSION_MINOR}.${DCIP_VERSION_PATCH}")
10
 set(DCIP_VERSION_NOQUOTES "${DCIP_VERSION_MAJOR}.${DCIP_VERSION_MINOR}.${DCIP_VERSION_PATCH}")
7
 
11
 
8
-option ( LEMMA_MODULE_DCIP TRUE )
9
-
10
 configure_file (
12
 configure_file (
11
 	"${CMAKE_CURRENT_SOURCE_DIR}/config/DCIPConfig.h.in"
13
 	"${CMAKE_CURRENT_SOURCE_DIR}/config/DCIPConfig.h.in"
12
 	"${PROJECT_BINARY_DIR}/include/DCIPConfig.h"
14
 	"${PROJECT_BINARY_DIR}/include/DCIPConfig.h"
48
 	#if (LEMMA_BUILD_EXAMPLES)
50
 	#if (LEMMA_BUILD_EXAMPLES)
49
 	#	add_subdirectory(examples)
51
 	#	add_subdirectory(examples)
50
 	#endif()
52
 	#endif()
53
+
54
+endif()

+ 1
- 0
Modules/FDEM1D/CMakeLists.txt View File

12
 
12
 
13
 # Linking
13
 # Linking
14
 target_link_libraries(fdem1d "lemmacore")
14
 target_link_libraries(fdem1d "lemmacore")
15
+target_link_libraries(fdem1d ${YAML_CPP_LIBRARIES}) 
15
 
16
 
16
 if ( KIHA_EM1D )
17
 if ( KIHA_EM1D )
17
 	target_link_libraries(fdem1d "kihaem1d")
18
 	target_link_libraries(fdem1d "kihaem1d")

+ 1
- 0
Modules/LemmaCore/CMakeLists.txt View File

24
 target_link_libraries (lemmacore Eigen3::Eigen)
24
 target_link_libraries (lemmacore Eigen3::Eigen)
25
 #target_link_libraries (lemmacore CxxTest)
25
 #target_link_libraries (lemmacore CxxTest)
26
 target_link_libraries (lemmacore ${YAML_CPP_LIBRARIES}) 
26
 target_link_libraries (lemmacore ${YAML_CPP_LIBRARIES}) 
27
+target_link_libraries (lemmacore ${YAML_CPP_LIBRARY}) 
27
 
28
 
28
 # Linking
29
 # Linking
29
 if ( LEMMA_VTK6_SUPPORT OR LEMMA_VTK7_SUPPORT OR LEMMA_VTK8_SUPPORT ) 
30
 if ( LEMMA_VTK6_SUPPORT OR LEMMA_VTK7_SUPPORT OR LEMMA_VTK8_SUPPORT ) 

Loading…
Cancel
Save