Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[fcl] Explicity handle FCL_USE_X64_SSE CMake option #11406

Merged
merged 2 commits into from
May 20, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion ports/fcl/CONTROL
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
Source: fcl
Version: 0.6.0
Version: 0.6.0-1
Homepage: https://github.com/flexible-collision-library/fcl
Description: a library for performing three types of proximity queries on a pair of geometric models composed of triangles
Build-Depends: ccd, octomap, eigen3
7 changes: 7 additions & 0 deletions ports/fcl/portfile.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,19 @@ else()
set(FCL_STATIC_LIBRARY OFF)
endif()

if(VCPKG_TARGET_ARCHITECTURE STREQUAL "x64" OR VCPKG_TARGET_ARCHITECTURE STREQUAL "x86")
set(FCL_USE_X64_SSE ON)
else()
set(FCL_USE_X64_SSE OFF)
endif()

vcpkg_configure_cmake(
SOURCE_PATH ${SOURCE_PATH}
PREFER_NINJA
OPTIONS
-DFCL_STATIC_LIBRARY=${FCL_STATIC_LIBRARY}
-DFCL_BUILD_TESTS=OFF
-DFCL_USE_X64_SSE=${FCL_USE_X64_SSE}
)

vcpkg_install_cmake()
Expand Down