From ce4cfb77e06419b3f2d4c985f9af59ba5cf923ac Mon Sep 17 00:00:00 2001 From: obligaron Date: Wed, 12 May 2021 20:52:56 +0200 Subject: [PATCH] Change target_compile_options from private to public --- CMakeLists.txt | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 1671db402..f9e253223 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -767,16 +767,16 @@ if(NOT CMAKE_CXX_COMPILER_ID MATCHES "MSVC") target_compile_options(${BIN_TARGET} PUBLIC $<${DEBUG_GENEX}:-fno-omit-frame-pointer>) # Warnings for devilutionX - target_compile_options(${BIN_TARGET} PRIVATE -Wall -Wextra -Wno-unused-parameter) + target_compile_options(${BIN_TARGET} PUBLIC -Wall -Wextra -Wno-unused-parameter) # For ARM and other default unsigned char platforms - target_compile_options(${BIN_TARGET} PRIVATE -fsigned-char) + target_compile_options(${BIN_TARGET} PUBLIC -fsigned-char) endif() if(CMAKE_CXX_COMPILER_ID MATCHES "MSVC") - target_compile_options(${BIN_TARGET} PRIVATE "/W1") - target_compile_options(${BIN_TARGET} PRIVATE "/Zc:__cplusplus") - target_compile_options(${BIN_TARGET} PRIVATE "/permissive-") + target_compile_options(${BIN_TARGET} PUBLIC "/W1") + target_compile_options(${BIN_TARGET} PUBLIC "/Zc:__cplusplus") + target_compile_options(${BIN_TARGET} PUBLIC "/permissive-") endif() if(APPLE)