CMake: Make all target_compile_definitions private

It is only used to build scintilla, no need to expose these definitions to external projects.
This commit is contained in:
Maarten Bent
2022-04-10 19:35:15 +02:00
parent de495c19a3
commit affbbce1a3
3 changed files with 10 additions and 12 deletions

View File

@@ -15,6 +15,7 @@ if(wxBUILD_MONOLITHIC)
set(wxMONO_LIBS_PRIVATE)
set(wxMONO_LIBS_PUBLIC)
set(wxMONO_INCLUDE_DIRS)
set(wxMONO_DEFINITIONS)
set(wxMONO_NONCOMPILED_CPP_FILES)
endif()
@@ -84,13 +85,13 @@ if(wxBUILD_MONOLITHIC)
target_link_libraries(wxmono ${vis} ${wxMONO_LIBS_${vis}})
endif()
if(wxMONO_DEFINITIONS_${vis})
target_compile_definitions(wxmono ${vis} ${wxMONO_DEFINITIONS_${vis}})
endif()
endforeach()
if(wxMONO_INCLUDE_DIRS)
target_include_directories(wxmono BEFORE PRIVATE ${wxMONO_INCLUDE_DIRS})
endif()
if(wxMONO_DEFINITIONS)
target_compile_definitions(wxmono PRIVATE ${wxMONO_DEFINITIONS})
endif()
foreach(file ${wxMONO_NONCOMPILED_CPP_FILES})
set_source_files_properties(${file} PROPERTIES HEADER_FILE_ONLY TRUE)
endforeach()