fixes
All checks were successful
BlockStorage/repertory_osx_builds/pipeline/head This commit looks good
BlockStorage/repertory_linux_builds/pipeline/head This commit looks good

This commit is contained in:
2023-12-22 21:44:52 -06:00
parent 7705432820
commit 2ae22cdb30
2 changed files with 4 additions and 17 deletions

View File

@ -19,13 +19,6 @@ endfunction(copy_support_files)
function(set_common_target_options name)
target_compile_definitions(${name} PUBLIC ${REPERTORY_DEFINITIONS})
if (UNIX OR MINGW)
target_compile_options(${name} PRIVATE
${REPERTORY_GCC_CXX_FLAGS}
${REPERTORY_GCC_FLAGS}
)
endif()
target_precompile_headers(${name} PRIVATE include/common.hpp)
if (MACOS)
@ -34,9 +27,9 @@ function(set_common_target_options name)
endif()
if (UNIX OR MINGW)
target_compile_options(${name} PRIVATE
${REPERTORY_GCC_CXX_FLAGS}
${REPERTORY_GCC_FLAGS}
target_compile_options(${name} PRIVATE
$<$<COMPILE_LANGUAGE:CXX>:${REPERTORY_GCC_CXX_FLAGS}>
$<$<COMPILE_LANGUAGE:C>:${REPERTORY_GCC_FLAGS}>
)
endif()
endfunction(set_common_target_options)