Skip to content

Commit

Permalink
disable more windows
Browse files Browse the repository at this point in the history
  • Loading branch information
kjmeagher committed Nov 2, 2024
1 parent 6f80412 commit 51fc00c
Showing 1 changed file with 7 additions and 9 deletions.
16 changes: 7 additions & 9 deletions subprojects/packagefiles/cfitsio/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ else
add_project_arguments('-DYY_NO_UNISTD_H', language: 'c')
endif

if cc.get_id() == 'msvc'
if host_machine.system() == 'windows'
has_fortran = false
add_project_arguments('-Dcfitsio_EXPORTS', language: 'c')
else
Expand All @@ -43,9 +43,6 @@ else
deps += bzip2
endif

endif

if host_machine.system() != 'windows'
threads = dependency('threads', required: get_option('reentrant'))
if threads.found()
add_project_arguments('-D_REENTRANT', language: 'c')
Expand Down Expand Up @@ -276,9 +273,10 @@ if has_fortran
test('testf77', cmp, args: [testf77, meson.current_source_dir()])
endif

benchmark(
'speed',
executable('speed', 'utilities/speed.c', dependencies: cfitsio_dep),
)

if cc.get_id() != 'msvc'
benchmark(
'speed',
executable('speed', 'utilities/speed.c', dependencies: cfitsio_dep),
)
endif

0 comments on commit 51fc00c

Please sign in to comment.