Skip to content

Commit

Permalink
build key2lower as static by cmake
Browse files Browse the repository at this point in the history
The present version, `make install` moves `fourier` into `$CMAKE_INSTALL_PREFIX/bin` but `key2lower.so` not, and so moved `fourier` does not work since system cannot load `libkey2lower`.
This PR fixes this problem.
  • Loading branch information
yomichi authored Jul 7, 2017
1 parent e32ce3b commit 2766edb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tool/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ if(${CMAKE_PROJECT_NAME} STREQUAL "Project")
message(FATAL_ERROR "cmake should be executed not for 'src' subdirectory, but for the top directory of HPhi.")
endif(${CMAKE_PROJECT_NAME} STREQUAL "Project")

add_library(key2lower key2lower.c)
add_library(key2lower STATIC key2lower.c)
add_executable(fourier fourier.F90)
add_executable(corplot corplot.F90)
target_link_libraries(fourier key2lower ${LAPACK_LIBRARIES})
Expand Down

0 comments on commit 2766edb

Please sign in to comment.