Skip to content
Snippets Groups Projects
Commit 2f19aa11 authored by Ivan Tsybulin's avatar Ivan Tsybulin
Browse files

fixed build of shared libs

parent 498efb87
No related branches found
No related tags found
No related merge requests found
......@@ -85,13 +85,12 @@ if(BUILD_STATIC_LIBS)
add_definitions(-DFORTRANUNDERSCORE)
elseif(FORTRANDOUBLEUNDERSCORE)
add_definitions(-DFORTRANDOUBLEUNDERSCORE)
else()
endif()
include(FortranCInterface)
FortranCInterface_VERIFY()
FortranCInterface_HEADER(${CMAKE_CURRENT_SOURCE_DIR}/FC.h MACRO_NAMESPACE "FC_")
message(STATUS "FORTRAN_C_INTEFACE TEST: ${FortranCInterface_VERIFIED_C}")
add_definitions(-DFC_MANGLE=1)
endif()
add_library(parlibf-static STATIC "")
target_sources( parlibf-static
PRIVATE
......
#include <stdlib.h>
#include "parlib.h"
#ifdef FC_MANGLE
#include "FC.h"
#endif
// ParLib v1.8 initialization
// -------------------------------------------------------------------------- //
#ifdef FORTRANUNDERSCORE
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment