MoDeNa-EUProject/MoDeNa

Error in fson

Closed this issue · 4 comments

CMake Error: CMAKE_Fortran_COMPILER not set, after EnableLanguage
-- Configuring incomplete, errors occurred!

solution:
add:

enable_language(Fortran)
get_filename_component (Fortran_COMPILER_NAME ${CMAKE_Fortran_COMPILER} NAME)

However even after adding this another problem exists that I could not solve:

configure_file attempted to configure a file:
/home/mehdi/fson/src/libfson.pc into a source directory.

-- Configuring incomplete, errors occurred!

japaf commented

fson and bspline libraries changed installation paths and models in master branch were not updated. Try merging #132, and then build the models.

It did not solve the problem. The problem is fson cannot be installed.

CMake Error at src/CMakeLists.txt:10 (configure_file):
configure_file attempted to configure a file:
/home/mehdi/fson/src/libfson.pc into a source directory.

-- Configuring incomplete, errors occurred!
See also "/home/mehdi/fson/CMakeFiles/CMakeOutput.log".

FYI, I am using

mkdir build; cd build
+cmake ..
+cmake --build .
+cmake --build . --target install

installation guide.

japaf commented

@mehdiataei Yes, that is the correct installation procedure.