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()