diff options
author | Lukas Rusak <lorusak@gmail.com> | 2021-12-12 16:20:32 -0800 |
---|---|---|
committer | Lukas Rusak <lorusak@gmail.com> | 2021-12-14 19:04:22 -0800 |
commit | 6589fcd97d90fcdd3e907550f9d2e36b8d454dd4 (patch) | |
tree | a04deb3221522fdb5eda37f9ba8fb8b64a61945b /CMakeLists.txt | |
parent | 79575ae154c7079a879bc533ff5a99e129779dc8 (diff) |
[cmake] allow specifying compile options for core units only
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 1e4dff92e6..8770460fc9 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -251,6 +251,10 @@ set_target_properties(compileinfo PROPERTIES FOLDER "Build Utilities") target_compile_options(compileinfo PRIVATE "${SYSTEM_DEFINES} ${ARCH_DEFINES}") add_dependencies(compileinfo fmt) +if(NOT MSVC) + target_compile_options(compileinfo PUBLIC ${CORE_COMPILE_OPTIONS}) +endif() + # RC File if(WIN32) configure_file(${CMAKE_SOURCE_DIR}/xbmc/platform/win32/XBMC_PC.rc.in |