aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/ptex/fix-build.patch
blob: e92842d04d34ecde71c9aaef9ff95be6eb74dbd2 (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
30
31
32
33
34
35
36
37
38
39
40
41
42
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 78f6531..b7ea30b 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -28,7 +28,9 @@ set(THREADS_PREFER_PTHREAD_FLAG ON)
 include(GNUInstallDirs)
 
 include(CTest)
+if(0)
 enable_testing()
+endif()
 
 # Setup platform-specific threading flags.
 find_package(Threads REQUIRED)
@@ -113,9 +115,11 @@ endif ()
 include_directories(src/ptex)
 
 add_subdirectory(src/ptex)
+if(0)
 add_subdirectory(src/utils)
 add_subdirectory(src/tests)
 if (PTEX_BUILD_DOCS)
     add_subdirectory(src/doc)
 endif ()
+endif ()
 add_subdirectory(src/build)
diff --git a/src/ptex/CMakeLists.txt b/src/ptex/CMakeLists.txt
index 4dfe372..4572dd5 100644
--- a/src/ptex/CMakeLists.txt
+++ b/src/ptex/CMakeLists.txt
@@ -40,7 +40,10 @@ if(PTEX_BUILD_SHARED_LIBS)
     target_compile_definitions(Ptex_dynamic PRIVATE PTEX_EXPORTS)
     target_link_libraries(Ptex_dynamic
         PUBLIC Threads::Threads ZLIB::ZLIB)
-    install(TARGETS Ptex_dynamic EXPORT Ptex DESTINATION ${CMAKE_INSTALL_LIBDIR})
+    install(TARGETS Ptex_dynamic EXPORT Ptex
+                                 RUNTIME DESTINATION ${BIN_INSTALL_DIR}
+                                 LIBRARY DESTINATION ${LIB_INSTALL_DIR}
+                                 ARCHIVE DESTINATION ${LIB_INSTALL_DIR})
 endif()
 
 install(FILES