about summary refs log tree commit diff
path: root/pkgs/development/lua-modules/toml.patch
blob: db09dd66db5ebbe27f48ef2cbfd225a56441727e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
diff --git a/CMakeLists.txt b/CMakeLists.txt
index faae37a..6990d4a 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -38,26 +38,17 @@ include(FetchContent)
 
 FetchContent_Declare(
 	${TOML++}
-	GIT_REPOSITORY "https://github.com/marzer/tomlplusplus.git"
-	GIT_SHALLOW ON
-    GIT_SUBMODULES ""
-	GIT_TAG "v3.4.0"
+      DOWNLOAD_COMMAND true
 )
 
 FetchContent_Declare(
 	${SOL2}
-	GIT_REPOSITORY "https://github.com/ThePhD/sol2.git"
-	GIT_SHALLOW ON
-    GIT_SUBMODULES ""
-	GIT_TAG "v3.3.0"
+      DOWNLOAD_COMMAND true
 )
 
 FetchContent_Declare(
 	${MAGIC_ENUM}
-	GIT_REPOSITORY "https://github.com/Neargye/magic_enum.git"
-	GIT_SHALLOW ON
-    GIT_SUBMODULES ""
-	GIT_TAG "v0.9.5"
+      DOWNLOAD_COMMAND true
 )
 
 FetchContent_GetProperties(${TOML++})
@@ -112,7 +103,7 @@ if(NOT LUA_INCLUDE_DIR OR (WIN32 AND NOT LUA_LIBRARIES))
     find_package(Lua)
 endif()
 
-include_directories(${LUA_INCLUDE_DIR} src src/include ${${TOML++}_SOURCE_DIR} ${${SOL2}_SOURCE_DIR}/include ${${MAGIC_ENUM}_SOURCE_DIR}/include)
+include_directories(${LUA_INCLUDE_DIR} src src/include TOML_PLUS_PLUS_SRC ${${SOL2}_SOURCE_DIR}/include MAGIC_ENUM_SRC/include)
 
 set(SOURCES
     src/toml.cpp
@@ -129,7 +120,7 @@ source_group(src FILES ${SOURCES})
 if(WIN32 AND "${CMAKE_CXX_COMPILER_ID}" MATCHES "Clang" OR MSVC)
 	target_link_options(toml.lua PUBLIC ${PROJECT_SOURCE_DIR}\\libs\\lua51.lib)
 else() 
-    target_link_libraries(toml.lua ${LUA_LIBRARIES} tomlplusplus::tomlplusplus)    
+    target_link_libraries(toml.lua ${LUA_LIBRARIES} tomlplusplus)
 endif()
 
 if (LINK_FLAGS)