Improve CMake SDK output handling and linker configuration
This commit is contained in:
@@ -85,6 +85,7 @@ endfunction()
|
|||||||
|
|
||||||
# This function installs specified target results under destination directory
|
# This function installs specified target results under destination directory
|
||||||
function(set_install_target TARGET DESTINATION)
|
function(set_install_target TARGET DESTINATION)
|
||||||
|
set_target_properties(${TARGET} PROPERTIES ARCHIVE_OUTPUT_DIRECTORY "${EXECTOS_BINARY_DIR}/output/sdk/lib")
|
||||||
install(TARGETS ${TARGET} DESTINATION ${EXECTOS_BINARY_DIR}/output/binaries/${DESTINATION})
|
install(TARGETS ${TARGET} DESTINATION ${EXECTOS_BINARY_DIR}/output/binaries/${DESTINATION})
|
||||||
endfunction()
|
endfunction()
|
||||||
|
|
||||||
|
@@ -12,7 +12,7 @@ endif()
|
|||||||
# Set build optimisation
|
# Set build optimisation
|
||||||
if(BUILD_TYPE STREQUAL "DEBUG")
|
if(BUILD_TYPE STREQUAL "DEBUG")
|
||||||
add_compiler_ccxxflags("/GS- /Zi /Ob0 /Od")
|
add_compiler_ccxxflags("/GS- /Zi /Ob0 /Od")
|
||||||
add_linker_flags("/DEBUG /INCREMENTAL /OPT:NOREF /OPT:NOICF /PDBSOURCEPATH:build")
|
add_linker_flags("/DEBUG /INCREMENTAL:NO /OPT:REF /OPT:NOICF /PDBSOURCEPATH:build")
|
||||||
else()
|
else()
|
||||||
add_compiler_ccxxflags("/GS- /Ob2 /Ot /Ox /Oy")
|
add_compiler_ccxxflags("/GS- /Ob2 /Ot /Ox /Oy")
|
||||||
add_linker_flags("/INCREMENTAL:NO /OPT:REF /OPT:ICF")
|
add_linker_flags("/INCREMENTAL:NO /OPT:REF /OPT:ICF")
|
||||||
|
Reference in New Issue
Block a user