Skip to content

Commit 4f56970

Browse files
committed
Update references and fix version inclusion
1 parent c2dc116 commit 4f56970

File tree

4 files changed

+10
-3
lines changed

4 files changed

+10
-3
lines changed

CMake/NeighborhoodSearch.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ else(USE_GPU_NEIGHBORHOOD_SEARCH)
3333
Ext_NeighborhoodSearch
3434
PREFIX "${CMAKE_BINARY_DIR}/extern/CompactNSearch"
3535
GIT_REPOSITORY https://github.com/InteractiveComputerGraphics/CompactNSearch.git
36-
GIT_TAG "3f11ece16a419fc1cc5795d6aa87cb7fe6b86960"
36+
GIT_TAG "99fa1fe052f353b33957948f36e628500f1737f7"
3737
INSTALL_DIR ${ExternalInstallDir}/NeighborhoodSearch
3838
CMAKE_ARGS -DCMAKE_BUILD_TYPE=${EXT_CMAKE_BUILD_TYPE} -DCMAKE_CXX_FLAGS=${CMAKE_CXX_FLAGS} -DCMAKE_CXX_FLAGS_RELEASE=${CMAKE_CXX_FLAGS_RELEASE} -DCMAKE_INSTALL_PREFIX:PATH=${ExternalInstallDir}/NeighborhoodSearch -DUSE_DOUBLE_PRECISION:BOOL=${USE_DOUBLE_PRECISION} -DBUILD_DEMO:BOOL=OFF
3939
)

CMake/SetUpExternalProjects.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ ExternalProject_Add(
1414
Ext_Discregrid
1515
PREFIX "${CMAKE_BINARY_DIR}/extern/Discregrid"
1616
GIT_REPOSITORY https://github.com/InteractiveComputerGraphics/Discregrid.git
17-
GIT_TAG "0b69062ff9c56fbb6dcecd296652028bedbacf0e"
17+
GIT_TAG "4c27e1cc88be828c6ac5b8a05759ac7e01cf79e9"
1818
INSTALL_DIR ${ExternalInstallDir}/Discregrid
1919
CMAKE_ARGS -DCMAKE_BUILD_TYPE:STRING=${EXT_CMAKE_BUILD_TYPE} -DCMAKE_INSTALL_PREFIX:PATH=${ExternalInstallDir}/Discregrid -DBUILD_CMD_EXECUTABLE:BOOL=0 -DEIGEN3_INCLUDE_DIR:PATH=${EIGEN3_INCLUDE_DIR} -DCMAKE_CXX_FLAGS=${CMAKE_CXX_FLAGS}
2020
)

CMakeLists.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,9 @@ endif()
4040
## Eigen3 is used by most of the libraries that follow
4141
find_package(Eigen3 REQUIRED)
4242
add_definitions(-DEIGEN_DISABLE_UNALIGNED_ARRAY_ASSERT)
43+
if (CMAKE_CXX_COMPILER_ID MATCHES "Clang")
44+
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -idirafter${EIGEN3_INCLUDE_DIR}")
45+
endif()
4346

4447
################################################################################
4548
# own external libraries

Utilities/CMakeLists.txt

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,5 +29,9 @@ add_library(Utilities
2929
)
3030

3131
add_dependencies(Utilities partio zlib)
32-
target_include_directories(Utilities PUBLIC ${TOPLEVEL_INCLUDE_DIR} ${EIGEN3_INCLUDE_DIR})
32+
if (CMAKE_CXX_COMPILER_ID MATCHES "Clang")
33+
target_compile_options(Utilities PUBLIC -idirafter${TOPLEVEL_INCLUDE_DIR} -idirafter${EIGEN3_INCLUDE_DIR})
34+
else()
35+
target_include_directories(Utilities PUBLIC ${TOPLEVEL_INCLUDE_DIR} ${EIGEN3_INCLUDE_DIR})
36+
endif()
3337
target_link_libraries(Utilities INTERFACE partio zlib MD5)

0 commit comments

Comments
 (0)