File tree Expand file tree Collapse file tree 3 files changed +15
-1
lines changed Expand file tree Collapse file tree 3 files changed +15
-1
lines changed Original file line number Diff line number Diff line change @@ -106,3 +106,9 @@ htmlcov
106106
107107# Dynamic Library
108108* .dylib
109+
110+ # Visual Studio CMake Project
111+ /.vs /
112+ CMakeSettings.json
113+ /out /
114+ /openmc /lib /* .lib
Original file line number Diff line number Diff line change @@ -325,8 +325,11 @@ else()
325325 add_library (libopenmc SHARED ${libopenmc_SOURCES} )
326326endif ()
327327
328+ # Avoid vs error lnk1149 :output filename matches input filename
329+ if (NOT MSVC )
328330set_target_properties (libopenmc PROPERTIES
329- OUTPUT_NAME openmc)
331+ OUTPUT_NAME openmc)
332+ endif ()
330333
331334target_include_directories (libopenmc
332335 PUBLIC
Original file line number Diff line number Diff line change @@ -386,7 +386,12 @@ void load_custom_source_library()
386386
387387void close_custom_source_library ()
388388{
389+ #ifdef HAS_DYNAMIC_LINKING
389390 dlclose (custom_source_library);
391+ #else
392+ fatal_error (" Custom source libraries have not yet been implemented for "
393+ " non-POSIX systems" );
394+ #endif
390395}
391396
392397Particle::Bank sample_custom_source_library (uint64_t * seed)
You can’t perform that action at this time.
0 commit comments