File tree Expand file tree Collapse file tree 7 files changed +33
-7
lines changed Expand file tree Collapse file tree 7 files changed +33
-7
lines changed Original file line number Diff line number Diff line change 1- set (CPM_DOWNLOAD_VERSION 0.38.1 )
1+ set (CPM_DOWNLOAD_VERSION 0.42.0 )
22
33if (CPM_SOURCE_CACHE)
44 set (CPM_DOWNLOAD_LOCATION "${CPM_SOURCE_CACHE} /cpm/CPM_${CPM_DOWNLOAD_VERSION} .cmake" )
Original file line number Diff line number Diff line change @@ -11,4 +11,8 @@ option(CATCH_INSTALL_DOCS "Install documentation alongside library" OFF)
1111option (CATCH_INSTALL_EXTRAS "Install extras alongside library" OFF )
1212
1313include (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" )
Original file line number Diff line number Diff 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 ()
4768endif ()
4869
4970# On Windows, enable natvis files to improve debugging experience
Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ add_library(nlohmann_json INTERFACE)
2121add_library (nlohmann_json::nlohmann_json ALIAS nlohmann_json)
2222
2323include (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)
Original file line number Diff line number Diff line change @@ -9,4 +9,4 @@ message(STATUS "Third-party: creating target 'igl::core'")
99include (eigen)
1010
1111include (CPM)
12- CPMAddPackage("gh:libigl/libigl@2.5.0 " )
12+ CPMAddPackage("gh:libigl/libigl#89267b4a80b1904de3f6f2812a2053e5e9332b7e " )
Original file line number Diff line number Diff 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 )
5959endfunction ()
@@ -67,7 +67,7 @@ endif()
6767foreach (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 "" )
Original file line number Diff line number Diff line change 1414
1515set_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
1920if ("${CMAKE_CXX_COMPILER_ID} " STREQUAL "AppleClang" OR
2021 "${CMAKE_CXX_COMPILER_ID} " STREQUAL "Clang" )
You can’t perform that action at this time.
0 commit comments