diff --git a/cmake/Modules/PlatformDefaults.cmake b/cmake/Modules/PlatformDefaults.cmake index d8c6ff292..9885b664c 100644 --- a/cmake/Modules/PlatformDefaults.cmake +++ b/cmake/Modules/PlatformDefaults.cmake @@ -151,7 +151,11 @@ function( detect_platform_variables resultvarname ) if ( NOT WINDOWS ) set(NEXUSFLAGS "-DUSE_NEXUS -lNeXus")#?? should probably have another value else() - set(NEXUSFLAGS "-DUSE_NEXUS -lNeXus-0") + if ( MCCODE_BUILD_CONDA_PKG ) + set(NEXUSFLAGS "/DUSE_NEXUS NeXus.lib") + else() + set(NEXUSFLAGS "-DUSE_NEXUS -lNeXus-0") + endif() endif() if ( NEXUSLIB ) set(NEXUSFLAGS "-Wl,-rpath,${NEXUSLIB} -L${NEXUSLIB} ${NEXUSFLAGS}")