Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion CMake/CMakeLocations.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -29,14 +29,15 @@

# User's home directory:
set( HOME $ENV{HOME} )
set( MODULEDIR $ENV{MODULEDIR} )

set( search_locations
/usr
/usr/local
/opt
/opt/local
/sw
${MODULEDIR}/plplot
${HOME}/usr
CACHE
PATH
Expand Down Expand Up @@ -77,6 +78,7 @@ set( include_locations
${HOME}/usr/include
${HOME}/include
${HOME}/lib/fortran/modules
${MODULEDIR}/plplot
CACHE
PATH
"Directories to look for include files"
Expand Down
5 changes: 4 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,9 @@ if( CREATE_SHAREDLIB )
else( COMPILER_SPECIFIC_LIBS )
set_target_properties( pg2plplot_shared PROPERTIES OUTPUT_NAME "pg2plplot" )
endif( COMPILER_SPECIFIC_LIBS )
set_target_properties( pg2plplot_shared PROPERTIES Fortran_MODULE_DIRECTORY ${MODULE_DIRECTORY} )
set_target_properties( pg2plplot_shared PROPERTIES Fortran_MODULE_DIRECTORY ${MODULE_DIRECTORY} SOVERSION 0)
execute_process(COMMAND pkg-config --libs plplot-fortran OUTPUT_VARIABLE PKG_LINK OUTPUT_STRIP_TRAILING_WHITESPACE)
target_link_libraries( pg2plplot_shared ${PKG_LINK})
endif( CREATE_SHAREDLIB )

if( CREATE_STATICLIB )
Expand All @@ -87,6 +89,7 @@ if( CREATE_STATICLIB )
set_target_properties( pg2plplot_static PROPERTIES OUTPUT_NAME "pg2plplot" )
endif( COMPILER_SPECIFIC_LIBS )
set_target_properties( pg2plplot_static PROPERTIES Fortran_MODULE_DIRECTORY ${MODULE_DIRECTORY} )
execute_process(COMMAND pkg-config --cflags plplot-fortran OUTPUT_VARIABLE PKG_FLAGS OUTPUT_STRIP_TRAILING_WHITESPACE)
endif( CREATE_STATICLIB )


Expand Down