fixes
This commit is contained in:
@ -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)
|
||||
|
Reference in New Issue
Block a user