fix for older cmake

looks ok
This commit is contained in:
Martin Diehl 2019-04-26 18:07:43 +02:00
parent b63a6c7034
commit b4a21e8d40
2 changed files with 2 additions and 3 deletions

View File

@ -467,4 +467,3 @@ message ("Fortran Linker Command:\n${CMAKE_Fortran_LINK_EXECUTABLE}\n")
# location of code # location of code
add_subdirectory (src) add_subdirectory (src)
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin)

View File

@ -25,7 +25,7 @@ if (PROJECT_NAME STREQUAL "damask-grid")
if(NOT CMAKE_BUILD_TYPE STREQUAL "SYNTAXONLY") if(NOT CMAKE_BUILD_TYPE STREQUAL "SYNTAXONLY")
add_executable(DAMASK_spectral ${sources}) add_executable(DAMASK_spectral ${sources})
install (TARGETS DAMASK_spectral RUNTIME) install (TARGETS DAMASK_spectral RUNTIME DESTINATION bin)
else() else()
add_library(DAMASK_spectral OBJECT ${sources}) add_library(DAMASK_spectral OBJECT ${sources})
exec_program (mktemp OUTPUT_VARIABLE nothing) exec_program (mktemp OUTPUT_VARIABLE nothing)
@ -46,6 +46,6 @@ elseif (PROJECT_NAME STREQUAL "damask-mesh")
list(FILTER sources EXCLUDE REGEX ".*mesh_grid.*\\.f90") list(FILTER sources EXCLUDE REGEX ".*mesh_grid.*\\.f90")
add_executable(DAMASK_FEM ${sources}) add_executable(DAMASK_FEM ${sources})
install (TARGETS DAMASK_FEM RUNTIME) install (TARGETS DAMASK_FEM RUNTIME DESTINATION bin)
endif() endif()