csv-fortran icon indicating copy to clipboard operation
csv-fortran copied to clipboard

Building install target with Visual Studio on Windows

Open mbraakhekke opened this issue 3 years ago • 1 comments

Building the install target in Visual Studio (Intel Parallel Studio) fails because the modules end up in a subdirectory under Fortran_MODULE_DIRECTORY named after the configuration. See here.

I solved it by modifying the relevant install() command using a generator expression:

install(FILES "${LIBFCSV_FORTRAN_MODULE_DIR}/$<CONFIG>/csv_module.mod"
    DESTINATION finclude)

There doesn't seem to be a portable solution at the moment (see also this related issue) other than identifying the generator (e.g. using CMAKE_GENERATOR).

mbraakhekke avatar Apr 08 '22 12:04 mbraakhekke

If you have a fix for this I would accept a pull results. I didn't write the CMake stuff and don't use it, so I can't help you there.

jacobwilliams avatar Nov 18 '23 23:11 jacobwilliams