Skip to content

Commit aa12ffd

Browse files
committed
fix(io): build error with niftiio
1 parent 2a2351d commit aa12ffd

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

libs/io/session/CMakeLists.txt

-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
sight_add_target(io_session TYPE LIBRARY OBJECT_LIBRARY ON)
22

33
if(MSVC)
4-
find_package(NIFTI COMPONENTS nifti2 niftiio REQUIRED)
54
target_link_libraries(${SIGHT_TARGET}_obj PRIVATE NIFTI::niftiio NIFTI::nifti2)
65
else()
76
# NIFTI official cmake configuration files from Debian/Ubuntu are broken: they reference the wrong path

libs/io/session/Dependencies.cmake

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
if(MSVC)
2+
find_package(NIFTI COMPONENTS nifti2 niftiio REQUIRED)
3+
endif()

0 commit comments

Comments
 (0)