Skip to content

Commit

Permalink
In conda, link with cl.exe oriented syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
willend committed May 18, 2024
1 parent 60b8a0c commit 872fd52
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion cmake/Modules/PlatformDefaults.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -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}")
Expand Down

0 comments on commit 872fd52

Please sign in to comment.