summarylogtreecommitdiffstats
path: root/zenlib_dynamic_physfs.diff
blob: 94a74dc3299ea267aefb005cd782e109c07c280c (plain)
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
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 6c350f4..abb5f63 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -11,10 +11,8 @@ set(PHYSFS_BUILD_SHARED OFF)
 set(CMAKE_CXX_STANDARD 14)
 
 # 3rd-party dependencies
-set(PHYSFS_BUILD_TEST OFF CACHE STRING "" FORCE)
-add_subdirectory(lib/physfs)
-
-include_directories(lib/physfs/src)
+find_package( PhysFS REQUIRED )
+include_directories(${PHYSFS_INCLUDE_DIR})
 include_directories(.)
 
 # Internal libraries
diff --git a/vdfs/CMakeLists.txt b/vdfs/CMakeLists.txt
index 505ec46..e09006e 100644
--- a/vdfs/CMakeLists.txt
+++ b/vdfs/CMakeLists.txt
@@ -13,6 +13,6 @@ if(MSVC)
 	set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /DNOMINMAX")
 endif()
 
-target_link_libraries(vdfs physfs-static)
+target_link_libraries(vdfs physfs)
 set_target_properties(vdfs PROPERTIES LINKER_LANGUAGE C)
 target_include_directories(vdfs PUBLIC ..)