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:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user