Possible bug in CMakeLists.txt

Discussion on computers, ROMS installation and compiling

Moderators: arango, robertson

Post Reply
Message
Author
stef
Posts: 208
Joined: Tue Mar 13, 2007 6:38 pm
Location: Independent researcher
Contact:

Possible bug in CMakeLists.txt

#1 Post by stef »

Hi,

Just wanted to mention that I tried building the static library without Ecbuild with a custom CMAKE_INSTALL_PREFIX, and noticed that the module files do not get installed.

After inserting

Code: Select all

    install(DIRECTORY ${CMAKE_Fortran_MODULE_DIRECTORY} DESTINATION "${CMAKE_INSTALL_PREFIX}" )
in CMakeLists.txt for the " if( LIBSTATIC )" case, it worked. Not sure if this is the intended behaviour?

In any case, thanks for all the work!

Post Reply