Skip to content
Snippets Groups Projects
Commit 8b31a737 authored by Christoph Grüninger's avatar Christoph Grüninger
Browse files

Merge branch 'feature/unified-libdir-in-super-builds' into 'master'

Install libraries in root build path instead on project build path

See merge request !1467
parents 76cc3192 b4e1bf5c
Branches
Tags
1 merge request!1467Install libraries in root build path instead on project build path
Pipeline #76370 waiting for manual action
......@@ -187,10 +187,10 @@ function(dune_add_library_normal _name)
# Set target options from COMPILE_FLAGS
target_compile_options(${_name} PUBLIC "${ARG_COMPILE_OPTIONS}")
# Build library in ${PROJECT_BINARY_DIR}/lib
# Build library in ${CMAKE_BINARY_DIR}/lib
set_target_properties(${_name} PROPERTIES
LIBRARY_OUTPUT_DIRECTORY "${PROJECT_BINARY_DIR}/lib"
ARCHIVE_OUTPUT_DIRECTORY "${PROJECT_BINARY_DIR}/lib")
LIBRARY_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/lib"
ARCHIVE_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/lib")
# Set an output name for the created library file
if(ARG_OUTPUT_NAME)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment