aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/ptex/fix-build.patch
diff options
context:
space:
mode:
Diffstat (limited to 'vcpkg/ports/ptex/fix-build.patch')
-rw-r--r--vcpkg/ports/ptex/fix-build.patch42
1 files changed, 42 insertions, 0 deletions
diff --git a/vcpkg/ports/ptex/fix-build.patch b/vcpkg/ports/ptex/fix-build.patch
new file mode 100644
index 0000000..e92842d
--- /dev/null
+++ b/vcpkg/ports/ptex/fix-build.patch
@@ -0,0 +1,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