Skip to content

Commit

Permalink
[glew][octomap][roaring] fix parallel config (#5958)
Browse files Browse the repository at this point in the history
* [glew][octomap][roaring] fix parallel config

fix CMake Error: Could not open file for write in copy operation

* [anax] fix parallel config
  • Loading branch information
Rastaban committed Apr 5, 2019
1 parent 03981bb commit dbdba21
Show file tree
Hide file tree
Showing 8 changed files with 11 additions and 18 deletions.
2 changes: 1 addition & 1 deletion ports/anax/CONTROL
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
Source: anax
Version: 2.1.0-3
Version: 2.1.0-4
Description: An open source C++ entity system. <https://github.com/miguelmartin75/anax>
18 changes: 4 additions & 14 deletions ports/anax/portfile.cmake
Original file line number Diff line number Diff line change
@@ -1,11 +1,3 @@
# Common Ambient Variables:
# VCPKG_ROOT_DIR = <C:\path\to\current\vcpkg>
# TARGET_TRIPLET is the current triplet (x86-windows, etc)
# PORT is the current port name (zlib, etc)
# CURRENT_BUILDTREES_DIR = ${VCPKG_ROOT_DIR}\buildtrees\${PORT}
# CURRENT_PACKAGES_DIR = ${VCPKG_ROOT_DIR}\packages\${PORT}_${TARGET_TRIPLET}
#

include(vcpkg_common_functions)

vcpkg_from_github(
Expand All @@ -14,17 +6,15 @@ vcpkg_from_github(
REF v2.1.0
SHA512 b573733b5f9634bf8cfc5b0715074f9a8ee29ecb48dc981d9371254a1f6ff8afbbb9ba6aa0877d53e518e5486ecc398a6d331fb9b5dbfd17d8707679216e11a3
HEAD_REF master
)

vcpkg_apply_patches(
SOURCE_PATH ${SOURCE_PATH}
PATCHES ${CMAKE_CURRENT_LIST_DIR}/Add-bin-output.patch
PATCHES
Add-bin-output.patch
)

vcpkg_configure_cmake(
SOURCE_PATH ${SOURCE_PATH}
DISABLE_PARALLEL_CONFIGURE
OPTIONS
-DCMAKE_WINDOWS_EXPORT_ALL_SYMBOLS=ON
-DCMAKE_WINDOWS_EXPORT_ALL_SYMBOLS=ON
)

vcpkg_install_cmake()
Expand Down
2 changes: 1 addition & 1 deletion ports/glew/CONTROL
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
Source: glew
Version: 2.1.0-2
Version: 2.1.0-3
Description: The OpenGL Extension Wrangler Library (GLEW) is a cross-platform open-source C/C++ extension loading library.
1 change: 1 addition & 0 deletions ports/glew/portfile.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ vcpkg_extract_source_archive(${ARCHIVE_FILE} ${CURRENT_BUILDTREES_DIR}/src/glew)

vcpkg_configure_cmake(
SOURCE_PATH ${SOURCE_PATH}/build/cmake
DISABLE_PARALLEL_CONFIGURE
OPTIONS
-DBUILD_UTILS=OFF
)
Expand Down
2 changes: 1 addition & 1 deletion ports/octomap/CONTROL
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
Source: octomap
Version: cefed0c1d79afafa5aeb05273cf1246b093b771c-4
Version: cefed0c1d79afafa5aeb05273cf1246b093b771c-5
Description: An Efficient Probabilistic 3D Mapping Framework Based on Octrees
1 change: 1 addition & 0 deletions ports/octomap/portfile.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ vcpkg_from_github(

vcpkg_configure_cmake(
SOURCE_PATH ${SOURCE_PATH}
DISABLE_PARALLEL_CONFIGURE
OPTIONS
-DBUILD_OCTOVIS_SUBPROJECT=OFF
-DBUILD_DYNAMICETD3D_SUBPROJECT=OFF
Expand Down
2 changes: 1 addition & 1 deletion ports/roaring/CONTROL
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
Source: roaring
Version: 2019-03-05-1
Version: 2019-03-05-2
Description: A better compressed bitset in C (and C++)
1 change: 1 addition & 0 deletions ports/roaring/portfile.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ string(COMPARE EQUAL "${VCPKG_LIBRARY_LINKAGE}" "static" ROARING_BUILD_STATIC)
vcpkg_configure_cmake(
SOURCE_PATH ${SOURCE_PATH}
PREFER_NINJA
DISABLE_PARALLEL_CONFIGURE
OPTIONS
-DROARING_BUILD_STATIC=${ROARING_BUILD_STATIC}
-DENABLE_ROARING_TESTS=OFF
Expand Down

0 comments on commit dbdba21

Please sign in to comment.