Skip to content

Commit 4fa806f

Browse files
committed
Update third-party dependencies
1 parent 2c82b9c commit 4fa806f

File tree

7 files changed

+33
-7
lines changed

7 files changed

+33
-7
lines changed

cmake/recipes/CPM.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
set(CPM_DOWNLOAD_VERSION 0.38.1)
1+
set(CPM_DOWNLOAD_VERSION 0.42.0)
22

33
if(CPM_SOURCE_CACHE)
44
set(CPM_DOWNLOAD_LOCATION "${CPM_SOURCE_CACHE}/cpm/CPM_${CPM_DOWNLOAD_VERSION}.cmake")

cmake/recipes/catch2.cmake

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,8 @@ option(CATCH_INSTALL_DOCS "Install documentation alongside library" OFF)
1111
option(CATCH_INSTALL_EXTRAS "Install extras alongside library" OFF)
1212

1313
include(CPM)
14-
CPMAddPackage("gh:catchorg/[email protected]")
14+
CPMAddPackage("gh:catchorg/[email protected]")
15+
16+
# Folder name for IDE
17+
set_target_properties(Catch2 PROPERTIES FOLDER "ThirdParty/Catch2")
18+
set_target_properties(Catch2WithMain PROPERTIES FOLDER "ThirdParty/Catch2")

cmake/recipes/eigen.cmake

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,27 @@ if(EIGEN_WITH_MKL)
4444
EIGEN_USE_MKL_ALL
4545
EIGEN_USE_LAPACKE_STRICT
4646
)
47+
elseif(APPLE)
48+
find_package(BLAS REQUIRED)
49+
find_library(LAPACKE lapacke PATHS
50+
"/opt/local/lib/lapack"
51+
"/opt/homebrew/opt/lapack/lib"
52+
)
53+
if (NOT LAPACKE)
54+
# BLAS should be available on macOS, but LAPACKE might not be
55+
message(WARNING "LAPACKE library not found (required for EIGEN_USE_LAPACKE on macOS)! "
56+
"Perhaps you need to install it (e.g., brew install lapack). "
57+
"Eigen will be built without LAPACKE support.")
58+
else()
59+
message(STATUS "Found BLAS and LAPACKE. Enabling Eigen LAPACKE support.")
60+
target_link_libraries(Eigen3_Eigen INTERFACE
61+
${BLAS_LIBRARIES} ${LAPACKE}
62+
)
63+
target_compile_definitions(Eigen3_Eigen INTERFACE
64+
EIGEN_USE_BLAS
65+
EIGEN_USE_LAPACKE_STRICT
66+
)
67+
endif()
4768
endif()
4869

4970
# On Windows, enable natvis files to improve debugging experience

cmake/recipes/json.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ add_library(nlohmann_json INTERFACE)
2121
add_library(nlohmann_json::nlohmann_json ALIAS nlohmann_json)
2222

2323
include(GNUInstallDirs)
24-
target_include_directories(nlohmann_json INTERFACE
24+
target_include_directories(nlohmann_json SYSTEM INTERFACE
2525
"$<BUILD_INTERFACE:${nlohmann_json_SOURCE_DIR}>/include"
2626
"$<INSTALL_INTERFACE:${CMAKE_INSTALL_INCLUDEDIR}>"
2727
)

cmake/recipes/libigl.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,4 @@ message(STATUS "Third-party: creating target 'igl::core'")
99
include(eigen)
1010

1111
include(CPM)
12-
CPMAddPackage("gh:libigl/libigl@2.5.0")
12+
CPMAddPackage("gh:libigl/libigl#89267b4a80b1904de3f6f2812a2053e5e9332b7e")

cmake/recipes/onetbb.cmake

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ function(onetbb_import_target)
5353

5454
set(CMAKE_INSTALL_DEFAULT_COMPONENT_NAME tbb)
5555
include(CPM)
56-
CPMAddPackage("gh:oneapi-src/oneTBB@2021.9.0")
56+
CPMAddPackage("gh:uxlfoundation/oneTBB@2022.1.0")
5757

5858
pop_variable(BUILD_SHARED_LIBS)
5959
endfunction()
@@ -67,7 +67,7 @@ endif()
6767
foreach(name IN ITEMS tbb tbbmalloc tbbmalloc_proxy)
6868
if(TARGET ${name})
6969
# Folder name for IDE
70-
set_target_properties(${name} PROPERTIES FOLDER "third_party//tbb")
70+
set_target_properties(${name} PROPERTIES FOLDER "ThirdParty/tbb")
7171

7272
# Force debug postfix for library name. Our pre-compiled MKL library expects "tbb12.dll" (without postfix).
7373
set_target_properties(${name} PROPERTIES DEBUG_POSTFIX "")

cmake/recipes/spdlog.cmake

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@ CPMAddPackage("gh:gabime/[email protected]")
1414

1515
set_target_properties(spdlog PROPERTIES POSITION_INDEPENDENT_CODE ON)
1616

17-
set_target_properties(spdlog PROPERTIES FOLDER external)
17+
# Folder name for IDE
18+
set_target_properties(spdlog PROPERTIES FOLDER "ThirdParty")
1819

1920
if("${CMAKE_CXX_COMPILER_ID}" STREQUAL "AppleClang" OR
2021
"${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang")

0 commit comments

Comments
 (0)