From b4a21e8d40651e7186e117066e697f5dc66c2861 Mon Sep 17 00:00:00 2001 From: Martin Diehl Date: Fri, 26 Apr 2019 18:07:43 +0200 Subject: [PATCH] fix for older cmake looks ok --- CMakeLists.txt | 1 - src/CMakeLists.txt | 4 ++-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index a9c5fa83e..78d63117e 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -467,4 +467,3 @@ message ("Fortran Linker Command:\n${CMAKE_Fortran_LINK_EXECUTABLE}\n") # location of code add_subdirectory (src) -set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 6ff120873..736db112a 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -25,7 +25,7 @@ if (PROJECT_NAME STREQUAL "damask-grid") if(NOT CMAKE_BUILD_TYPE STREQUAL "SYNTAXONLY") add_executable(DAMASK_spectral ${sources}) - install (TARGETS DAMASK_spectral RUNTIME) + install (TARGETS DAMASK_spectral RUNTIME DESTINATION bin) else() add_library(DAMASK_spectral OBJECT ${sources}) exec_program (mktemp OUTPUT_VARIABLE nothing) @@ -46,6 +46,6 @@ elseif (PROJECT_NAME STREQUAL "damask-mesh") list(FILTER sources EXCLUDE REGEX ".*mesh_grid.*\\.f90") add_executable(DAMASK_FEM ${sources}) - install (TARGETS DAMASK_FEM RUNTIME) + install (TARGETS DAMASK_FEM RUNTIME DESTINATION bin) endif()