Skip to content
Snippets Groups Projects
Commit 60e523f3 authored by Debolskiy Andrey's avatar Debolskiy Andrey :bicyclist_tone5:
Browse files

removed target_sources in CMakeLists.txt to comply with older versions of cmake

parent 9ed59a45
Branches
Tags
No related merge requests found
...@@ -2,13 +2,10 @@ ...@@ -2,13 +2,10 @@
add_library(plutils STATIC "") add_library(plutils STATIC "")
INCLUDE(plutils/CMakeLists.txt) INCLUDE(plutils/CMakeLists.txt)
if(BUILD_SHARED_LIBS) if(BUILD_SHARED_LIBS)
add_library(parlibc-shared SHARED "") add_library(parlibc-shared SHARED
target_sources(parlibc-shared
PRIVATE
parlib.c parlib.c
bexchange.c bexchange.c
transpose.c transpose.c
PUBLIC
parlib.h) parlib.h)
target_include_directories(parlibc-shared target_include_directories(parlibc-shared
...@@ -35,13 +32,10 @@ endif(BUILD_SHARED_LIBS) ...@@ -35,13 +32,10 @@ endif(BUILD_SHARED_LIBS)
if(BUILD_STATIC_LIBS) if(BUILD_STATIC_LIBS)
add_library(parlibc-static STATIC "") add_library(parlibc-static STATIC
target_sources(parlibc-static
PRIVATE
parlib.c parlib.c
bexchange.c bexchange.c
transpose.c transpose.c
PUBLIC
parlib.h) parlib.h)
set_target_properties(parlibc-static set_target_properties(parlibc-static
PROPERTIES PROPERTIES
...@@ -76,14 +70,11 @@ if(BUILD_STATIC_LIBS) ...@@ -76,14 +70,11 @@ if(BUILD_STATIC_LIBS)
FortranCInterface_HEADER(${CMAKE_CURRENT_SOURCE_DIR}/FC.h MACRO_NAMESPACE "FC_") FortranCInterface_HEADER(${CMAKE_CURRENT_SOURCE_DIR}/FC.h MACRO_NAMESPACE "FC_")
message(STATUS "FORTRAN_C_INTEFACE TEST: ${FortranCInterface_VERIFIED_C}") message(STATUS "FORTRAN_C_INTEFACE TEST: ${FortranCInterface_VERIFIED_C}")
add_definitions(-DFC_MANGLE=1) add_definitions(-DFC_MANGLE=1)
add_library(parlibf-static STATIC "") add_library(parlibf-static STATIC
target_sources(parlibf-static
PRIVATE
parlibf.c parlibf.c
bexchangef.c bexchangef.c
transposef.c transposef.c
FC.h FC.h
PUBLIC
parlibf.h) parlibf.h)
target_link_libraries(parlibf-static target_link_libraries(parlibf-static
...@@ -105,14 +96,11 @@ if(BUILD_STATIC_LIBS) ...@@ -105,14 +96,11 @@ if(BUILD_STATIC_LIBS)
) )
endif(BUILD_STATIC_LIBS) endif(BUILD_STATIC_LIBS)
if(BUILD_SHARED_LIBS) if(BUILD_SHARED_LIBS)
add_library(parlibf-shared SHARED "") add_library(parlibf-shared SHARED
target_sources(parlibf-shared
PRIVATE
parlibf.c parlibf.c
bexchangef.c bexchangef.c
transposef.c transposef.c
FC.h FC.h
PUBLIC
parlibf.h) parlibf.h)
target_link_libraries(parlibf-shared target_link_libraries(parlibf-shared
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment