Skip to content

Commit 59057e3

Browse files
committed
Attempt at fixing the MacOS build
1 parent d75631f commit 59057e3

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

CMakeLists.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,8 @@ ExternalProject_Add(cfitsio
3838
-DCMAKE_INSTALL_PREFIX=${PROJECT_SOURCE_DIR}/external
3939
-DCMAKE_C_COMPILER=${CMAKE_C_COMPILER}
4040
-DCMAKE_CXX_COMPILER=${CMAKE_CXX_COMPILER}
41-
-DCMAKE_BUILD_TYPE=Release)
41+
-DCMAKE_BUILD_TYPE=Release
42+
-DCMAKE_C_FLAGS="-DHAVE_UNISTD_H")
4243

4344
# Configure and build vif
4445
ExternalProject_Add(vif

0 commit comments

Comments
 (0)